Skip to main content

debug_storageRangeAt RPC Method

Returns the contract storage for the specified range.

Updated on
Aug 7, 2024

debug_storageRangeAt RPC Method

Parameters

blockHash
string
REQUIRED
The hash of the block
txIndex
integer
REQUIRED
The transaction index for the point in which we want the list of accounts
address
string
REQUIRED
The contract address
startKey
string
REQUIRED
The offset (hash of storage key)
limit
string
REQUIRED
The number of storage entries to return

Returns

result
object
The result object which contains the following fields:
storage
object
An object with hash values, and for each of them the key and value it represents
hash
object
The hash value
key
string
The key associated with the hash
value
string
The value associated with the hash
nextKey
string
The hash of next key if further storage in range. Otherwise, not included
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"debug_storageRangeAt","params":["0x9950b0c073d8690447b4e00e6e4ce2afa4cb154ae9bf8b47514def75564307af",0,"0x4200000000000000000000000000000000000015","0x0000000000000000000000000000000000000000000000000000000000000000",1],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free