eth_getStorageAt

BaseC2

Returns 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/base/rpc

Parameters

NameTypeDescription
addressDATA, 20 bytesContract address.
positionQUANTITYStorage slot index.
blockQUANTITY | TAGBlock number or tag.

Returns

DATA — the 32-byte value stored at the slot.

Request

curl https://api.1st-node.com/v1/base/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 Base

Base API

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