@avalabs/multicall
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Multicall.js

npm version

Multicall.js is a lightweight JavaScript library for interacting with the multicall smart contract.

Multicall allows multiple smart contract constant function calls to be grouped into a single call and the results aggregated into a single result. This reduces the number of separate JSON RPC requests that need to be sent over the network if using a remote node like Infura, and provides the guarantee that all values returned are from the same block. The latest block number is also returned along with the aggregated results.

Summary

  • Get the return value(s) of multiple smart contract function calls in a single call
  • Guarantee that all values are from the same block

Installation

yarn add @avalabs/multicall

Test

To run tests use:

yarn test

Readme

Keywords

Package Sidebar

Install

npm i @avalabs/multicall

Weekly Downloads

4

Version

0.0.6

License

MIT

Unpacked Size

1.17 MB

Total Files

16

Last publish

Collaborators

  • tony-snow
  • javiertc86
  • sayankar
  • meeh0w_ava
  • glovas
  • dov_brand
  • 0xsttava
  • artem.avalabs