@kodex-data/multicall
Version:
`@kodex-data/multicall` is a JavaScript library that allows you to batch multiple Ethereum read-only calls into a single request, reducing the number of RPC calls and improving performance. It supports the `eth_call` method and the `multicall` contract, w
8 lines (7 loc) • 462 B
TypeScript
import type { Result } from './types';
import { WebSocketProvider, IpcProvider } from '@ethersproject/providers';
export { isEmpty, isObject } from 'lodash';
export declare function resultToObject<Type extends Record<string, any>>(input: Result): Type;
export declare function formatAllValues(data: any): any;
export declare function parseAllBigNumbers(data: any): any;
export declare function createProvider(urlOrPath: string): WebSocketProvider | IpcProvider;