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

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersarray of strings 
addressstringThe address of the smart contract.
positionstringThe storage slot position in hexadecimal format.
blockNumberstring(optional) Block number as an integer, or string

Response

200
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultstringThe value stored at the specified storage slot, returned as a hexadecimal string.