eth_getStorageAt

BNB Smart ChainC2

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/bsc/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/bsc/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 BNB Smart Chain

BNB Smart Chain API

Частые вопросы

Can I read historic storage?

Yes — archive nodes serve storage at any past block height.

Пополнили, получили ключ, запустили.

Полное самообслуживание. Оплата криптой или картой. Тарификация в кредитах — тяжёлые примитивы дороже, простые дёшевы.

Получить API-ключ