https://github.com/omnes-tech/multicall
Library to handle multi calls on any EVM blockchain
https://github.com/omnes-tech/multicall
blockchain evm
Last synced: 5 months ago
JSON representation
Library to handle multi calls on any EVM blockchain
- Host: GitHub
- URL: https://github.com/omnes-tech/multicall
- Owner: omnes-tech
- Created: 2025-01-02T21:25:28.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-17T20:59:26.000Z (5 months ago)
- Last Synced: 2025-02-17T21:33:55.931Z (5 months ago)
- Topics: blockchain, evm
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `multicall`: Perform multiple calls using only one RPC call
[](https://pkg.go.dev/github.com/omnes-tech/multicall)
[](https://goreportcard.com/report/github.com/omnes-tech/multicall)
[](https://coveralls.io/github/omnes-tech/multicall?branch=main)
[](https://github.com/omnes-tech/multicall/releases/latest)Carry out several calls with only one RPC call.
```shell
go get github.com/omnes-tech/multicall
```## At a Glance
Instantiate the multicall client:
```go
client, err := multicall.NewClient(multicall.GENERAL, "http://localhost:8545", nil)
if err!= nil {
log.Fatal(err)
}
```Now you just need to call any method you need!
Write (transaction) functions:
- `AggregateCalls`
- `TryAggregateCalls`
- `TryAggregateCalls3`Read (call) functions:
- `SimulateCall`
- `AggregateStatic`
- `TryAggregateStatic`
- `TryAggregateStatic3`
- `CodeLengths`
- `Balances`
- `AddressesData`## Deployed Smart Contracts
Check out the deployed addresses [here](https://github.com/omnes-tech/multicall-contract/blob/main/README.md#deployments) on different chains.