Skip to content

Add eth_multicall #267

@zemse

Description

@zemse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions