eth_getStorageAt

Returns the value from a storage position at a given address.

Parameters

  • address: [Required] A string representing the address (20 bytes) of the storage.

  • storage position: [Required] A hexadecimal code of the position in the storage.

  • block parameter: A string representing a block number, block hash, or one of the string tags latest, earliest, pending, safe, or finalized. See the default block parameter.

Returns

A hexadecimal of the value of the storage position at the provided address.

Example

Request

curl https://rpc.testnet.radiustech.xyz/<YOUR-RPC-ENDPOINT> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
{
  "jsonrpc": "2.0",
  "method": "eth_getStorageAt",
  "params": [
    "0xcae4d474a43b186606bb836f463d4b4072b7fbe3",
    "0x1",
    "latest"
  ],
  "id": 1
}
'

Response

{
  "jsonrpc": "2.0",
  "result": "0x",
  "id": 1
}

Last updated

Was this helpful?