caver-multicall
Version:
Multicall library for caver-js
17 lines (16 loc) • 716 B
TypeScript
import Caver, { Contract } from "caver-js";
import { Method } from "./interface/method.interface";
import { ConstructorArgs } from "./interface/multicall-constructor.interface";
export declare class Multicall {
caver: Caver;
multicall: Contract;
constructor({ network, provider }: ConstructorArgs);
aggregate<T>(calls: Method<T>[], parameters?: {}): Promise<T[]>;
getKlayBalance(address: string): Promise<any>;
getBlockHash(blockNumber: string | number): Promise<any>;
getLastBlockHash(): Promise<any>;
getCurrentBlockTimestamp(): Promise<any>;
getCurrentBlockDifficulty(): Promise<any>;
getCurrentBlockGasLimit(): Promise<any>;
getCurrentBlockCoinbase(): Promise<any>;
}