Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 days 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 (30 days ago)
- Default Branch: main
- Last Pushed: 2025-01-02T21:44:01.000Z (30 days ago)
- Last Synced: 2025-01-02T22:27:25.983Z (30 days ago)
- Topics: blockchain, evm
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `multicall`: Perform multiple calls using only one RPC call
[![Go Reference](https://pkg.go.dev/badge/github.com/omnes-tech/multicall.svg)](https://pkg.go.dev/github.com/omnes-tech/multicall)
[![Go Report Card](https://goreportcard.com/badge/github.com/omnes-tech/multicall)](https://goreportcard.com/report/github.com/omnes-tech/multicall)
[![Coverage Status](https://coveralls.io/repos/github/omnes-tech/multicall/badge.svg?branch=main)](https://coveralls.io/github/omnes-tech/multicall?branch=main)
[![Latest Release](https://img.shields.io/github/v/release/omnes-tech/multicall)](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`