Skip to content

eth: add getStorageValues method#756

Merged
fjl merged 4 commits into
ethereum:mainfrom
s1na:eth/batch-storage
Apr 6, 2026
Merged

eth: add getStorageValues method#756
fjl merged 4 commits into
ethereum:mainfrom
s1na:eth/batch-storage

Conversation

@s1na

@s1na s1na commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Closes #752

@s1na

s1na commented Feb 23, 2026

Copy link
Copy Markdown
Contributor Author

Tests are failing because the latest release of geth doesn't have this method. It means we have to wait until the implementation is released for a green CI.

failed to fill eth_getStorageValues/get-storage-values-multiple-addresses: the method eth_getStorageValues does not exist/is not available
failed to fill eth_getStorageValues/get-storage-values-unknown-account: the method eth_getStorageValues does not exist/is not available

s1na added a commit to ethereum/go-ethereum that referenced this pull request Feb 23, 2026
Implements the new eth_getStorageValues method. It returns storage
values for a list of contracts.

Spec: ethereum/execution-apis#756

---------

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
@MysticRyuujin

Copy link
Copy Markdown
Contributor

@s1na - I think tests can be generated now and merged since geth v1.17.1 is released, do you wanna do that?

@s1na

s1na commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

Should be good to go!

MysticRyuujin added a commit to MysticRyuujin/nethermind that referenced this pull request Mar 23, 2026
Implements eth_getStorageValues per ethereum/execution-apis#756.
Returns storage values for multiple slots across multiple accounts
in a single request, reducing round-trip overhead for local simulations.

- Max 1024 total slots per request (-32602 on exceed)
- Empty request returns -32602 error
- Missing accounts/slots return 32 zero bytes
- Add ReadAsPropertyName to AddressConverter to support
  Dictionary<Address, ...> deserialization
@s1na

s1na commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

Anything blocking this?

@MysticRyuujin

Copy link
Copy Markdown
Contributor

Not that I know of

@fjl fjl merged commit 8deedf1 into ethereum:main Apr 6, 2026
5 checks passed
@wjmelements

Copy link
Copy Markdown

Is this mainly to facilitate batching for RPCs that don't allow regular batch jsonrpc? Is there an advantage to doing it this way instead of regular batching?

@s1na

s1na commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

See here for some of the motivation: #752 (comment)

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 this pull request may close these issues.

eth_getStorageValues - Batch storage slot retrieval

4 participants