Skip to main content
Version: Next

eth_getStorageAt

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

Parameters (by position)​

Address string required


Storage slot string required


Block string or string or string or object or object

default: 'latest'


Show Option 1 Block number string

Block number fields​

default: 'latest'

Block string

default: 'latest'

Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


Show Option 2 Block tag string

Block tag fields​

earliest: The lowest numbered block the client has available; finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; pending: A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. If the safe or finalized tag cannot be resolved to a block, the method responds as it does for an unknown block.

Block string

default: 'latest'

Allowed values: earliest finalized safe latest pending


Show Option 3 Block hash string

Block hash fields​

default: 'latest'

Block string

default: 'latest'

Match pattern: ^0x[0-9a-f]{64}$


Show Option 4 EIP-1898 block number object object

EIP-1898 block number object fields​

default: 'latest'

Block object

default: 'latest'


Show Block object

Block fields​

default: 'latest'

  • blockNumber string required

    Block number

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • additionalProperties false


Show Option 5 EIP-1898 block hash object object

EIP-1898 block hash object fields​

default: 'latest'

Block object

default: 'latest'


Show Block object

Block fields​

default: 'latest'

  • blockHash string required

    Block hash

    Match pattern: ^0x[0-9a-f]{64}$


  • requireCanonical boolean

    Whether the block hash must belong to a canonical block, defaulting to false. When true and the referenced block is not canonical, EIP-1898 recommends -32000: Invalid input. A block that cannot be found takes precedence and is reported as -32001: Resource not found.


  • additionalProperties false


Result​

Value string

hex encoded bytes

Match pattern: ^0x[0-9a-f]*$


Examples​

eth_getStorageAt example

Request​

{
"params": [
"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73",
"0x0",
"latest"
]
}

Response​

"0x0000000000000000000000000000000000000000000000000000000000000000"