UNPKG

caver-multicall

Version:
17 lines (16 loc) 716 B
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>; }