Returns the value from a storage position at a given address.
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: ethereum-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["0x295a70b2de5e3953354a6a8344e616ed314d7251","0x0","latest"]}'
index | |
---|---|
0 - address | The address of the storage. |
1 - position | The integer of the position in the storage. |
2 - blockNumber | The integer block number, or the string "latest", "earliest" or "pending", see the default block parameter |
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
Field | Description |
---|---|
result | The value at this storage position. |