[Inspection] debug_storageRangeAt
StorageRangeAt returns the storage of a contract account at the given block height and transaction index.
The 'key' field of the results is 'null' when the preimage is not available in the database. State-migrated databases may not contain preimages.
JSONRPC: debug_storageRangeAt
Request
- application/json
Body
Array [
]
params
undefined[]
required
the block hash
Address
Responses
- 200
StorageRangeResult
- application/json
- Schema
- Example (from schema)
Schema
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
code | message | description |
---|---|---|
-32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
result
object
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"storage": {
"0x12064c130a62c085dd9ba4147b9e43e285b1921382e917b5a98305165129cb3b": {
"key": null,
"value": "0x000000000000000000000000000000000000000000000000000000005d1d6611"
},
"0x12346954c5309ce51729175ca19b6bb93557ad3cc62db86930c4792fae900e1f": {
"key": "0x45a6893cb17fdefbdab6c4445329be181dfbbd45d77ee7d0365c2b0f0dca7f62",
"value": "0x000000000000000000000000368dd4c4d9eaadba63d03d46d763524ccf6ee4ed"
},
"0x1258923c5f06b2271566794565770dc787ab3c85131dbb47439174be4e9804fb": {
"key": "0xc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2d2",
"value": "0x000000000000000000000000d5b717457df52a59856394e9310e2cdd62cded6f"
}
},
"nextKey": "0x127da8558d24c1f64ea135cfd82539481d0b47fb00337215358718d6006d9ba4"
}
}