Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 637 Bytes

readme.md

File metadata and controls

15 lines (9 loc) · 637 Bytes

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.