mattercloudjs
Version:
MatterCloud Javascript SDK - https://www.mattercloud.net
43 lines (42 loc) • 1.86 kB
TypeScript
export declare class MerchantApi {
options: any;
constructor(providedOptions?: any);
submitTx(rawtx: string, callback?: Function): Promise<any>;
getTxStatus(txid: string, callback?: Function): Promise<any>;
getFeeQuote(callback?: Function): Promise<any>;
static instance(newOptions?: any): MerchantApi;
}
export declare class MatterCloud {
options: any;
constructor(providedOptions?: any);
setApiKey(key: string): void;
setOptions(newOptions: any): void;
getScriptHashUtxos(scripthash: string, args: {}, callback?: Function): Promise<any>;
getScriptHashHistory(scripthash: string, args: {}, callback?: Function): Promise<any>;
getUtxos(addrs: string, args: {
offset?: number;
limit?: number;
afterHeight?: number;
sort?: string;
}, callback?: Function): Promise<any>;
getBalance(addr: string, callback?: Function): Promise<any>;
getBalanceBatch(addrs: string[], callback?: Function): Promise<any>;
getHistory(addr: string, args?: {
from?: number;
to?: number;
}, callback?: Function): Promise<any>;
getHistoryBatch(addrs: string[], args?: {
from?: number;
to?: number;
}, callback?: Function): Promise<any>;
getTx(txid: string, callback?: Function): Promise<any>;
getTxRaw(txid: string, callback?: Function): Promise<any>;
getTxBatch(txids: string[], callback?: Function): Promise<any>;
sendRawTx(rawtx: string, callback?: Function): Promise<any>;
merchantTxBroadcast(rawtx: string, callback?: Function): Promise<any>;
merchantTxStatus(txid: string, callback?: Function): Promise<any>;
get mapi(): MerchantApi;
static instance(newOptions?: any): MatterCloud;
}
export declare function instance(newOptions?: any): MatterCloud;
export declare function mapi(newOptions?: any): MerchantApi;