post https://polygon-mainnet-archive.allthatnode.com:8545/
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 blocktxIndex
:INTEGER
- The transaction index for the point in which we want the list of accountsaddress
:STRING
- The contract addressstartKey
:STRING
- The offset (hash of storage key)maxResult
:STRING
- The number of storage entries to return
curl https://polygon-mainnet-archive.allthatnode.com:8545/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"id":1,
"method":"debug_storageRangeAt",
"params":[
"0x31d14b77082ceaeba816c1ea6c86c25bf275391b9c305d3e568442d986d2fcfd",
0,
"0xbb5f9ade0023ae87bdcd2268bdd74a2711654bdb",
"0x00",
1
]
}'
Returns
storage
:OBJECT
- An object with hash values, and for each of them the key and value it represents.hash
- The hash valuekey
- The key associated with the hashvalue
- 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": {
"0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563": {
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
"value": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
},
"nextKey": "0x0000000000000000000000000000000000000000000000000000000000000033"
}
}