@poprank/sdk
Version:
PopRank API client and types
25 lines (24 loc) • 705 B
TypeScript
import { AxiosRequestConfig } from 'axios';
export declare type Chain = 'ethereum' | 'solana' | 'polygon';
export interface APISuccessResponse<T> {
readonly success: true;
readonly data: T;
}
export interface APIFailureResponse {
readonly success: false;
readonly data: string;
}
/**
* Success or failure API response
*/
export declare type APIResponse<T> = APISuccessResponse<T> | APIFailureResponse;
/**
* Configuration of underlying `axios` instance.
* @summary PopRank Client configuration.
* @see https://axios-http.com/docs/req_config
*/
export declare type ClientConfig = AxiosRequestConfig;
export interface ChainTermLabels {
collectionId: string;
tokenId: string;
}