返回到文章

采纳

编辑于

eth_getStorageAt

ethereumj
命令

eth_getStorageAt,返回指定地址的存储位置的值。

参数

  • DATA, 20 Bytes - 存储地址.
  • QUANTITY - 存储位置的整数.
  • QUANTITY|TAG - 区块号, 或 "latest", "earliest", "pending"
    params: [
     '0x407d73d8a49eeb85d32cf465507dd71d507100c1',
     '0x0', // storage position at 0
     '0x2' // state at block number 2
    ]
    

返回

  • DATA - 在这个存储位置的值。

例子

// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getStorageAt","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "0x0", "0x2"],"id":1}'

// Result
{
  "id":1,
  "jsonrpc": "2.0",
  "result": "0x03"
}