Skip to main content
Returns the raw value stored at a specific storage slot of a contract address.

Parameters

address
string
required
The 20-byte contract address.
storagePosition
string
required
The hex-encoded integer position of the storage slot (e.g., "0x0" for slot 0).
blockParameter
string
required
Block number in hexadecimal, or a block tag: latest, earliest, pending, safe, or finalized.

Returns

result
string
The 32-byte value stored at the given storage position as a hex string.

Example

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