@zebec-network/exchange-card-sdk
Version:
An sdk for purchasing silver card in zebec
31 lines (30 loc) • 933 B
TypeScript
import { Quote } from "../types";
export type APIConfig = {
apiKey: string;
encryptionKey: string;
};
export declare class ZebecCardAPIService {
readonly apiConfig: APIConfig & {
apiUrl: string;
};
private readonly sdkVersion;
private readonly api;
constructor(apiConfig: APIConfig, sandbox?: boolean);
private generateSignature;
generateRequestHeaders(method: string, path: string, body?: any): {
"X-API-Key": string;
"X-Timestamp": string;
"X-Nonce": string;
"X-Signature": string;
"X-SDK-Version": string;
"Content-Type": string;
};
encryptSensitiveData(data: any): string;
ping(): Promise<boolean>;
purchaseCard(data: any): Promise<import("axios").AxiosResponse<any, any>>;
fetchQuote(symbol: string): Promise<Quote>;
fetchVault(symbol: string): Promise<{
address: string;
tag?: string;
}>;
}