OP Mainnet
debug_storageRangeAt100 credits
Returns a range of storage slots of a contract as of a transaction inside a block (debug API).
Parameters
| Name | Type | Description |
|---|---|---|
| blockHash | DATA | 32-byte block hash. |
| txIndex | QUANTITY | Transaction index in the block. |
| address | DATA | Contract address. |
| startKey | DATA | Hash of the first storage key. |
| maxResult | QUANTITY | Maximum number of slots. |
Returns
Type
Object
storage map and nextKey.
Code examples
curl https://holy-burned-sky-optimism-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "debug_storageRangeAt",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
0,
"0x0000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000",
1
]
}'