Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eth_multicall #267

Open
zemse opened this issue Jul 26, 2022 · 1 comment
Open

Add eth_multicall #267

zemse opened this issue Jul 26, 2022 · 1 comment

Comments

@zemse
Copy link

zemse commented Jul 26, 2022

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.

@lightclient
Copy link
Member

This makes a lot of sense to me. The path of least resistance for this is to probably to propose it during next ACD. I would want to have it formally spec'd so we could share with client teams, is that something you could do between now and Aug 4? (preferably a few days early so we can go through a first round of reviews)

@s1na s1na mentioned this issue Sep 26, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants