eth_getStorageAt
Returns the value from a storage position at a given address.

Example

Command Shell
Bash
1
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
2
-X POST
3
-H "Content-Type: application/json"
4
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getStorageAt\",\"params\": [\"0x295a70b2de5e3953354a6a8344e616ed314d7251\", \"0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9\", \"0x0\"],\"id\":1}"
Copied!
1
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
2
-H 'Content-Type: application/json' \
3
--data-raw "{"jsonrpc":"2.0","method":"eth_getStorageAt","params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x0"],"id":1}"
Copied!
Request Parameters
Response
  1. 1.
    ADDRESS - A string representing the address to check for balance.
  2. 2.
    STORAGE POSITION - A hex code of the position in the storage
  3. 3.
    BLOCK PARAMETER - An int block number in the form of hex, appended with 0x such as 0x6D7FE0, or pre-defined strings latest, earliest, pending.
Web3API's Composer accepts int block numbers, which will be auto-converted to a hex representation before being sent to a node.
Result Fields
STORAGE VALUE - A hex code of the integer indicating the value of the storage position at the provided address
Body
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x0000000000000000000000000000000000000000000000000000000000000000"
5
}
Copied!
​
Last modified 5mo ago
Copy link