eth_getStorageAt

网络: Base Sepolia · 测试网 · Chain ID 84532(0x14a34)

计为 1 个 Request。 计费规则见 Request Counting。

eth_getStorageAt 按 block tag 读取某个地址的 storage slot。最新状态读取可走标准 EVM 路由;旧区块读取需要 Archive 路由。

参数

  1. DATA - 20 字节合约地址。
  2. QUANTITY - Storage 位置。
  3. QUANTITY|TAG - 区块号或 tag。

请求

{ "jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x0000000000000000000000000000000000000000", "0x0", "latest"], "id": 1 }

代码示例

curl -X POST https://base-sepolia-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getStorageAt","params":["0x0000000000000000000000000000000000000000","0x0","latest"],"id":1}'

在线试用