0.2.3 • Published 2 years ago

@pelith/ethers-multicall v0.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@pelith/ethers-multicall npm version

Install

yarn add @pelith/ethers-multicall

Example

import { Contract as MulticallContract, Provider as MulticallProvider } from '@pelith/ethers-multicall';

const ethcallProvider = new MulticallProvider(web3Provider, chainId);
const tokenContract = new MulticallContract(address, ERC20_ABI);
const balances = await ethcallProvider.all([
  tokenContract.balanceOf(account1),
  tokenContract.balanceOf(account2),
]);

const balancesAtBlock = await ethcallProvider.all([
  tokenContract.balanceOf(account1),
  tokenContract.balanceOf(account2),
], blockTag);
0.2.3

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago