debug_storageRangeAt

Returns the storage at the given block height and transaction index. The result can be paged by providing a maxResult to cap the number of storage slots returned as well as specifying the offset via keyStart (hash of storage key).

Parameters

  • blockHash: STRING - The hash of the block
  • txIndex:INTEGER - The transaction index for the point in which we want the list of accounts
  • address: STRING - The contract address
  • startKey: STRING - The offset (hash of storage key)
  • maxResult: STRING - The number of storage entries to return
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"debug_storageRangeAt",
    "params":[
      "0xe2aedbb775e5d09871b4e8d07ef00dc6797ce7d4e66c640c2cb1a399f7622e50",
      0,
      "0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd",
      "0x00",
      1
    ]
}'

Returns

  • storage : OBJECT- An object with hash values, and for each of them the key and value it represents.
    • hash - The hash value
      • key - The key associated with the hash
      • value- The value associated with the hash
  • nextKey - The hash of next key if further storage in range. Otherwise, not included
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "storage": {
      "0x000503ea641500cbdc2282bd271c2e1a15eed4bd76c9c828f5ee7c4f3e598d9b": {
        "key": "0x261ce669ae48e7bc9ed2ce7dbd1a7a3b30090adecfbc7f123be1468eb40d1cd0",
        "value": "0x0000000000000000000000000000000000000000000000001f3ce71f0d46a2f5"
      }
    },
    "nextKey": "0x000513364607c9cdc1071da54cecfcb621539112bae65e9d3d38d7f6a89621c4"
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!