[Go to site: main page, start]

eth_getStorageValues - Arc

eth_getStorageValues. Returns the values stored at multiple storage slots of an account.

eth_getStorageValues - arc [Value: 20CU]
Returns the values stored at several storage slots of a contract address in a single call
Use cases
Use cases
  • Inspect a contract's mapping or array layout across several keys at once
  • Batch-verify storage values as part of state-diff or audit tooling
Constraints
Constraints
  • Not part of the standard Ethereum JSON-RPC specification; support varies by node/provider
  • Requires an archive node to read storage at historical blocks
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://arc.drpc.org \
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"eth_getStorageValues",
    "params":["0x3ccC78545F675A188B7521F7f4b4791995752635", ["0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000001"], "latest"],
    "id":1,
    "jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x0000000000000000000000000000000000000000000000000000000000000001",
    "0x0000000000000000000000000000000000000000000000000000000000000000"
  ]
}
Copy
Request params
idinteger
jsonrpcstring
methodstring
Parametersarray
array
addressstring
The contract address to read storage from.
positionsarray_of_strings
The storage slot keys to read, as hex strings.
blockNumberstring
Block number in hex, or a block tag, to read storage at.
  • latest [default] - The most recent block in the blockchain (default).
  • earliest - The first block, also known as the genesis block.
  • pending - Transactions that have been broadcast but not yet included in a block.
Response
200
The value stored at each requested slot, in the same order the slots were given
Response params
object
idinteger
jsonrpcstring
resultarray_of_strings
The value at each requested storage slot, in the order the positions were given.