import { IFastApiProvider } from './interface'; import { ILogger, IBTCUnspent, RPCNode } from '@onechain/core'; /** * BlockCypher * * WARNING 仅限开发调试用,传输的数据可能存在精度问题。 */ export declare class BlockCypher implements IFastApiProvider { protected logger: ILogger; protected endpoint: string; readonly supportBatch = true; readonly rateLimit = 3; static instance: BlockCypher; constructor(rpcnode: RPCNode, logger: ILogger); ping(): Promise; getAddresses(addresses: string[]): Promise; 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 BlockCypher;