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

Batch eth_call #24089

Closed
fjl opened this issue Dec 9, 2021 · 7 comments
Closed

Batch eth_call #24089

fjl opened this issue Dec 9, 2021 · 7 comments

Comments

@fjl
Copy link
Contributor

fjl commented Dec 9, 2021

Multiple people have requested a variant of eth_call where multiple calls can be made in sequence, building up state.

Previous requests:

#24025 (comment)
#22810

Implementation

If this is to be implemented, it should be a new RPC method. It could be named eth_multiCall or eth_batchCall, for example.

Any implementation of this feature needs to pay attention to the global gas cap: the combined gas usage of all chained calls should not be above this limit.

It's also an interesting question whether state overrides should be allowed per-call or just once.

@jwasinger
Copy link
Contributor

It seems like it would make sense to upstream eth_callBundle from mev-geth for this: https://docs.flashbots.net/flashbots-auction/miners/mev-geth-spec/v06-rpc#eth_callbundle

@slawomir-pryczek
Copy link

Hello, I created feature request for it in 2021 AFAIR. Will try to do it using recent geth and mev code. Will you include it?

@mteam88
Copy link

mteam88 commented Sep 27, 2022

It seems like it would make sense to upstream eth_callBundle from mev-geth for this: https://docs.flashbots.net/flashbots-auction/miners/mev-geth-spec/v06-rpc#eth_callbundle

This link is broken.

@pokrovskyy
Copy link

This is up-to-date Flashbots docs link (as of today)

And here is the mev-geth repo. Look at the CallBundle API implementation starting this line

It would indeed have been great to have the eth_callBundle ported, or reimplement something relatively similar (the callBundle logic may be a bit involved with the Flashbots "bundles" concept etc.) HTH!

@fjl
Copy link
Contributor Author

fjl commented Jan 21, 2023

We are still waiting for the spec change to be made before shipping anything in geth. It is likely that a spec change requires a champion who will defend the change in an allcoredevs call. This is to allow other Ethereum client teams to comment on the proposed API.

@monperrus
Copy link

For the record, see add support for rpc endpoint eth_callBundle

@s1na
Copy link
Contributor

s1na commented Sep 6, 2024

Can be closed via #27720.

@s1na s1na closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants