UNPKG

btfs-soter

Version:

TypeScript/JavaScript API to interact with BTFS Soter through the web

23 lines (22 loc) 559 B
export interface SoterInquiryResponse { code: number; message: string; balance: string; } export interface SoterAddResponse { code: number; message: string; cid?: string; } export interface SoterOptions { tronweb?: any; isTest?: boolean; } export declare class Soter { private api; private tronweb; constructor(options?: SoterOptions); inquiry(file_size: number): Promise<SoterInquiryResponse>; recharge(amount: number): Promise<any>; add(file: File): Promise<SoterAddResponse>; }