eth_getStorageAt RPC Method

Reads a single storage slot from a contract at the specified position.

Parameters#

stringrequired

Account address, 20 bytes, hex-encoded.

stringrequired

Storage slot index, hex-encoded 256-bit integer.

stringrequired

Block identifier — a tag (latest, safe, finalized, pending) or a 32-byte block hash.

Result#

string - The data stored at the requested slot, hex-encoded.

Code sample#

{
  "jsonrpc": "2.0",
  "method": "eth_getStorageAt",
  "params": [
    "0x6b175474e89094c44da98b954eedeac495271d0f",
    "0x0",
    "latest"
  ],
  "id": 1
}

Response#

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