curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_storageRangeAt",
"id": 1,
"params": [
"0x00e80e42fdb4bc373a520c376091421452d26c57e67615f27a7d0fc8e47f1853",
5,
"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"0x00000000000000000000000000000000",
2
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {
"storage": {},
"complete": true
}
}curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_storageRangeAt",
"id": 1,
"params": [
"0x00e80e42fdb4bc373a520c376091421452d26c57e67615f27a7d0fc8e47f1853",
5,
"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"0x00000000000000000000000000000000",
2
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {
"storage": {},
"complete": true
}
}debug_storageRangeAt RPC method retrieves storage entries from a contract at a specific block. This method is useful for developers and analysts who need to inspect the state of a contract’s storage at a particular point in time.
debug_storageRangeAt, send a POST request with a JSON RPC call in the body.
string): The hash of the block.integer): The index of the transaction in the block.string): The address of the contract.string): The starting point of the storage to inspect.integer): The maximum number of storage entries to return.object): A map of storage entries.boolean): Indicates whether the snapshot of storage is complete.debug_storageRangeAt method is essential for:
Was this page helpful?