eth_getStorageAt

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

Ethereum.org API Reference

Parameters

  1. DATA, 20 Bytes - address of the storage. REQUIRED

  2. QUANTITY - integer of the position in the storage. REQUIRED

  3. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter REQUIRED

Returns

DATA - the value at this storage position.

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getStorageAt",
  "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "latest"]
}
'

Response

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

Last updated