eth_getStorageValues
Returns the values of multiple storage slots for multiple accounts in a single request.
Parameters (by position)
Requests object required
Storage requests
Show Requests object
Requests objectRequests fields
Block string or string or string or object or object
default: 'latest'. The state is the one after the block has been executed.
Show Option 1 Block number string
Block number stringBlock number fields
default: 'latest'. The state is the one after the block has been executed.
Block string
default: 'latest'. The state is the one after the block has been executed.
Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$
Show Option 2 Block tag string
Block tag stringBlock tag fields
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. If the safe or finalized tag cannot be resolved to a block, the method responds as it does for an unknown block.
Block string
default: 'latest'. The state is the one after the block has been executed.
Allowed values: earliest finalized safe latest pending
Show Option 3 Block hash string
Block hash stringBlock hash fields
default: 'latest'. The state is the one after the block has been executed.
Block string
default: 'latest'. The state is the one after the block has been executed.
Match pattern: ^0x[0-9a-f]{64}$
Show Option 4 EIP-1898 block number object object
EIP-1898 block number object objectEIP-1898 block number object fields
default: 'latest'. The state is the one after the block has been executed.
Block object
default: 'latest'. The state is the one after the block has been executed.
Show Block object
Block objectBlock fields
default: 'latest'. The state is the one after the block has been executed.
-
blockNumber
stringrequiredBlock number
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
false
Show Option 5 EIP-1898 block hash object object
EIP-1898 block hash object objectEIP-1898 block hash object fields
default: 'latest'. The state is the one after the block has been executed.
Block object
default: 'latest'. The state is the one after the block has been executed.
Show Block object
Block objectBlock fields
default: 'latest'. The state is the one after the block has been executed.
-
blockHash
stringrequiredBlock hash
Match pattern:
^0x[0-9a-f]{64}$
-
requireCanonical
booleanWhether the block hash must belong to a canonical block, defaulting to
false. Whentrueand the referenced block is not canonical, EIP-1898 recommends-32000: Invalid input. A block that cannot be found takes precedence and is reported as-32001: Resource not found.
-
additionalProperties
false
Result
Values object
Storage values
Show Values object
Values objectValues fields
Examples
eth_getStorageValues example
Request
{
"params": [
{
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": [
"0x0000000000000000000000000000000000000000000000000000000000000003"
],
"0xdAC17F958D2ee523a2206206994597C13D831ec7": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0x0000000000000000000000000000000000000000000000000000000000000006"
]
},
"latest"
]
}
Response
{
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": [
"0x0000000000000000000000000000000000000000000000000000000000000001"
],
"0xdAC17F958D2ee523a2206206994597C13D831ec7": [
"0x00000000000000000000000000000000000000000000000000000000000f4240",
"0x0000000000000000000000000000000000000000000000000000000000000012"
]
}