eth_getStorageAt
OptimismC2Returns the raw 32-byte value at a storage slot of a contract at a given block. Historic reads resolve against archive nodes, so you can reconstruct past contract state.
Endpoint
POST https://api.1st-node.com/v1/optimism/rpcParameters
| Name | Type | Description |
|---|---|---|
| address | DATA, 20 bytes | Contract address. |
| position | QUANTITY | Storage slot index. |
| block | QUANTITY | TAG | Block number or tag. |
Returns
DATA — the 32-byte value stored at the slot.
Request
curl https://api.1st-node.com/v1/optimism/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getStorageAt",
"params": ["0xdac17f958d2ee523a2206206994597c13d831ec7", "0x0", "latest"]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getStorageAt",
"params": ["0xdac17f958d2ee523a2206206994597c13d831ec7", "0x0", "latest"]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}More state methods on Optimism
Preguntas frecuentes
Can I read historic storage?
Yes — archive nodes serve storage at any past block height.
Recarga, obtén tu clave y publica.
Autoservicio. Paga en cripto o con tarjeta. Medido por créditos: las primitivas pesadas cuestan más, las simples son baratas.
Obtener clave API