Appearance
eth_getStorageValues
served · same as reth
Returns the values of many storage slots of one or more contracts at a block.
When to use
Use it in place of many eth_getStorageAt requests.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getStorageValues", "params": [{"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": ["0x0", "0x1"]}, "0x18facad"]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getStorageValues",
"params": [
{
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": [
"0x0",
"0x1"
]
},
"0x18facad"
]
}Response
Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": [
"0x577261707065642045746865720000000000000000000000000000000000001a",
"0x5745544800000000000000000000000000000000000000000000000000000008"
]
}
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
requests | object: address to a list of slots | yes | The slots to read for each contract. |
block | block number in hex, or a tag, see Block parameter | no | The block whose state to read. The head or one of the 128 blocks before it. Default: latest. |
Returns
An object with the same addresses. Each address has the list of values (32 bytes of hex each), in the order of the request.
Notes and limits
- At most 1 024 slots for each request.
Errors
| Code | Message | When |
|---|---|---|
| -32602 | total slot count N exceeds limit 1024 | More than 1 024 slots. |
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
Schema (OpenRPC)
The official specification: eth_getStorageValues in ethereum/execution-apis.
Parameter Requests: object
json
{
"additionalProperties": {
"items": {
"pattern": "^0x[0-9a-f]{0,64}$",
"title": "32 hex encoded bytes",
"type": "string"
},
"title": "Storage keys",
"type": "array"
},
"title": "Storage requests",
"type": "object"
}Parameter Block: Block number or Block tag or Block hash
json
{
"anyOf": [
{
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
"title": "Block number",
"type": "string"
},
{
"description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"title": "Block tag",
"type": "string"
},
{
"pattern": "^0x[0-9a-f]{64}$",
"title": "Block hash",
"type": "string"
}
],
"title": "Block number, tag, or block hash"
}Result: object
json
{
"additionalProperties": {
"items": {
"pattern": "^0x[0-9a-f]*$",
"title": "hex encoded bytes",
"type": "string"
},
"title": "Slot values",
"type": "array"
},
"title": "Storage values",
"type": "object"
}