# @avalabs/multicall

> A blockchain state management library for dapps.

Latest version **0.0.6** (published 2022-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @avalabs/multicall
pnpm add @avalabs/multicall
yarn add @avalabs/multicall
bun add @avalabs/multicall
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2022-06-08 |
| First published | 2022-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mikias, anguyen0815, dov_brand, mark.milner, conor-avalabs, neven.s, stratuss, hiimoliverwang, jtanner, pafagans, ava_wings, dfenstermaker, glovas, gcardona |
| Keywords | multicall, makerdao |

## Links

- npm: https://www.npmjs.com/package/@avalabs/multicall
- Repository: https://github.com/ava-labs/multicall.js
- Homepage: https://github.com/ava-labs/multicall.js#readme
- Issues: https://github.com/ava-labs/multicall.js/issues
- npm.io page: https://npm.io/package/@avalabs/multicall

## Dependencies (7)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [invariant](https://npm.io/package/invariant.md) ^2.2.4
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.0.4
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.7.4
- [@ethersproject/abi](https://npm.io/package/@ethersproject/abi.md) ^5.6.3
- [@ethersproject/hash](https://npm.io/package/@ethersproject/hash.md) ^5.6.1

## Recent versions

- 0.0.6 (latest) — 2022-06-08
- 0.0.5 — 2022-06-08
- 0.0.4 — 2022-06-08
- 0.0.3 — 2022-06-08
- 0.0.2 — 2022-06-08
- 0.0.1 — 2022-06-08

## README

# Multicall.js 

[![npm version](https://img.shields.io/npm/v/@avalabs/multicall.svg?style=flat-square)](https://www.npmjs.com/package/@avalabs/multicall)

**Multicall.js** is a lightweight JavaScript library for interacting with the [multicall](https://github.com/makerdao/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

```bash
yarn add @avalabs/multicall
```

## Test

To run tests use:

```bash
yarn test
```

---
_Source: https://npm.io/package/@avalabs/multicall · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
