Skip to content

zhiqiangxu/multicall

Repository files navigation

multicall, inspired by @indexed-finance/multicall

Usage

Do(ctx context.Context, client *ethclient.Client, ab *abi.ABI, invokes []Invoke, result interface{}) (height uint64, err error)

invokes is the solidity calls you want to make;

result is the result slice, its size should be the same as invokes, and the type of the ith result should match the output type of the ith invoke.

The result is updated in-place, and the height of the call is also returned.

Follow example here.

About

Solidity contract and go library for static multi-calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published