import { IFastApiProvider } from './interface'; import { ILogger, IBTCUnspent, RPCNode } from '@onechain/core'; /** * BlockABC 接口 Provider * * @export * @class BlockABC * @implements {IFastApiProvider} */ export declare class BlockABC implements IFastApiProvider { protected logger: ILogger; protected endpoint: string; readonly supportBatch = true; readonly rateLimit = 3; static instance: BlockABC; constructor(rpcnode: RPCNode, logger: ILogger); ping(): Promise; getAddresses(addresses: string[]): Promise<{ address: string; txCount: number; }[]>; getUnspentOfAddresses(addresses: string[], onlyConfirmed?: boolean): Promise; pushTransaction(rawTransaction: string): Promise; protected buildUrl(path: string, query?: any): string; protected get(path: any, query?: any): Promise; protected post(path: any, data: any, query?: any): Promise; } export default BlockABC;