UNPKG

569 BTypeScriptView Raw
1/// <reference types="node" />
2import { JsonRpcProvider } from "./json-rpc-provider";
3export declare class JsonRpcBatchProvider extends JsonRpcProvider {
4 _pendingBatchAggregator: NodeJS.Timer;
5 _pendingBatch: Array<{
6 request: {
7 method: string;
8 params: Array<any>;
9 id: number;
10 jsonrpc: "2.0";
11 };
12 resolve: (result: any) => void;
13 reject: (error: Error) => void;
14 }>;
15 send(method: string, params: Array<any>): Promise<any>;
16}
17//# sourceMappingURL=json-rpc-batch-provider.d.ts.map
\No newline at end of file