eth_getStorageAt RPC Method
The eth_getStorageAt
returns the value stored at a specific position in the storage of a contract at a particular block. The value returned is in hexadecimal format. The value returned is in hexadecimal format.
Parameters
-
address
- String - The address to check for storage. -
position
- String - The integer of the position in storage. -
blockNumber or Tag
- Block number as hexadecimal or Tag (String) "latest", "earliest""pending".
Returns
Storage value
- The value of the storage position at the provided address
Request
POST https://<network>.chainnodes.org/YOUR-API-KEY
Example
💡
Confusing? Ask blockchain developers in Chainnodes Telegram Chat (opens in a new tab)
- HTTPS POST Request with a JSON RPC call in the body
- Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
- You can use a different supported network by replacing
mainnet
curl https://mainnet.chainnodes.org/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getStorageAt","params": ["0xdAC17F958D2ee523a2206206994597C13D831ec7", "0x0000000000000000000000000000000000000000000000000000000000000000", "latest"],"id":1}'
Body
{
"jsonrpc": "2.0",
"id": 1,
"result":"0x000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828"
}
Need RPC API keys?
Get 12.5M archival requests for free today.