-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Description
Abstract
Takes array of call objects and executes them one after the other.
Motivation
The eth_call executes the call on the latest state. When someone wants to inspect a state that would be, after a transaction would go through, currently it involves a non cheap way, i.e. using the mainnet fork (like ganache/hardhat network/anvil) to confirm the first tx and then query state on it, which makes a lot of rpc calls. Having a eth_multicall can be achieved by the clients cheaply.
Specification
TransactionCallObject be the type/interface for first arg of eth_call.
eth_multicall(calls: Array<TransactionCallObject>, blockTag?: number) -> Array<Bytes>The first arg calls is an array and required, while the second arg blockTag is optional.
Based on the discussion in EF JS discord.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels