Skip to content

Comments

feat(provider): add get_storage_values for batch storage slot retrieval#3692

Merged
mattsse merged 3 commits intomainfrom
mattsse/eth-get-storage-values
Feb 15, 2026
Merged

feat(provider): add get_storage_values for batch storage slot retrieval#3692
mattsse merged 3 commits intomainfrom
mattsse/eth-get-storage-values

Conversation

@gakonst
Copy link
Member

@gakonst gakonst commented Feb 14, 2026

Summary

Adds get_storage_values to the Provider trait per ethereum/execution-apis#752.

Motivation

get_storage_at fetches one slot per call. get_storage_values batch-fetches multiple storage slots across multiple contracts in a single RPC call.

Changes

  • crates/provider/src/provider/trait.rs: add get_storage_values method
  • crates/provider/src/provider/erased.rs: delegating impl
  • crates/provider/src/layers/block_id.rs: block_id forwarding
  • crates/provider/src/layers/cache.rs: cached impl
  • crates/provider/src/fillers/mod.rs: delegating impl

Prompted by: mattsse

Adds get_storage_values to the Provider trait per
ethereum/execution-apis#752. Includes StorageValuesRequest and
StorageValuesResponse newtype wrappers with builder-style API and
serde-transparent serialization.

Includes implementations for cache, erased, block_id, and filler layers.

Amp-Thread-ID: https://ampcode.com/threads/T-019c5c69-d96f-72fe-9fd8-90452f113ee8
Co-authored-by: Amp <[email protected]>
@gakonst gakonst force-pushed the mattsse/eth-get-storage-values branch from 1f79cb5 to 0364ce3 Compare February 14, 2026 14:45
@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Feb 14, 2026
@mattsse mattsse enabled auto-merge (squash) February 14, 2026 14:48
@mattsse mattsse merged commit 40bee5e into main Feb 15, 2026
30 checks passed
@mattsse mattsse deleted the mattsse/eth-get-storage-values branch February 15, 2026 19:22
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants