eth_getStorageAt
Retrieves the value stored at a specific storage slot of a contract address at a given block
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getStorageAt","params":["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],"id":1,"jsonrpc":"2.0"}'
'Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}Request params
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | array of strings | |
| address | string | The address of the smart contract. |
| position | string | The storage slot position in hexadecimal format. |
| blockNumber | string | (optional) Block number as an integer, or string |
Response
200
| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | string | The value stored at the specified storage slot, returned as a hexadecimal string. |