ethers.js/packages/providers/lib/json-rpc-batch-provider.d.ts

17 lines
569 B
TypeScript
Raw Normal View History

2021-04-18 05:41:09 +03:00
/// <reference types="node" />
import { JsonRpcProvider } from "./json-rpc-provider";
export declare class JsonRpcBatchProvider extends JsonRpcProvider {
_pendingBatchAggregator: NodeJS.Timer;
_pendingBatch: Array<{
request: {
method: string;
params: Array<any>;
id: number;
jsonrpc: "2.0";
};
resolve: (result: any) => void;
reject: (error: Error) => void;
}>;
send(method: string, params: Array<any>): Promise<any>;
}
//# sourceMappingURL=json-rpc-batch-provider.d.ts.map