eth_getStorageAt
Returns the value from a storage position at a given address.
Ethereum specification · All supported methods
Parameters
Parameters are positional, in the order below.
| Parameter | Type | Required | Description |
|---|---|---|---|
Address | 20-byte address | Yes | Account or contract address. |
Storage slot | Up to 32 bytes | Yes | See the linked specification for field encoding. |
Block | Block number, tag, or EIP-1898 hash selector | No | default: 'latest'. The state is the one after the block has been executed. |
Return value
The value at the requested storage slot, encoded as hexadecimal bytes.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","0x0","latest"]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}Direct behavior
State at the network head and its 128 preceding blocks is available through the recent service. Older state requests are automatically routed to providers with archive state.
Requests using latest follow Direct’s reference-block rules. The selected reference is preserved during recovery; separate requests can see a newer reference.
For providers
Support the recent-state window and the covered EIP-1898 selectors, including requireCanonical. Historical requests require verified archive state.
See provider qualification for checks and continued eligibility.