debug_storageRangeAt RPC Method
It returns the contract storage for the specified range.
Parameters
-
block hash
- Block hash -
txIndex
- The transaction index for the point in which we want the list of account -
address
- The contract address -
limit
- The number of storage entries to return -
startKey
- The offset (hash of storage key)
Need RPC API keys?
Get 12.5M archival requests for free today.
Returns
-
Storage
- 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.
Request
POST https://<network>.chainnodes.org/YOUR-API-KEY
Example
💡
Confusing? Ask blockchain developers in Chainnodes Telegram Chat (opens in a new tab)
- HTTPS POST Request with a JSON RPC call in the body
- Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
- You can use a different supported network by replacing
mainnet
curl https://mainnet.chainnodes.org/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"debug_storageRangeAt","params":["0xe9793319714333112d41473d33bc06556b6d32d347517b782eb1cdaec296a20b",5,"0xdAC17F958D2ee523a2206206994597C13D831ec7","0x00000000000000000000000000000000",2],"id":1}'
Body
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"storage": {
"0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563": {
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
"value": "0x000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828"
},
"0xb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6": {
"key": "0x0000000000000000000000000000000000000000000000000000000000000001",
"value": "0x000000000000000000000000000000000000000000000000007d5a864f06b2d5"
}
},
"nextKey": "0x0000000000000000000000000000000000000000000000000000000000000007"
}