eth_getStorageAt - Ethereum

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

eth_getStorageAt - ethereum [Value: 14CU]
Returns the value from a storage position at a given address.
Use cases

Use cases

  • Retrieve specific storage value from smart contract
  • Verify the current state of contract storage
  • Audit smart contract storage for data integrity
Constraints

Constraints

  • Requires a valid smart contract address
  • Needs an accurate specific storage slot key
  • Depends on the latest blockchain state data
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://eth.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getStorageAt","params":["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],"id":1,"jsonrpc":"2.0"}'
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of strings
array of strings
addressstring
The address to check for storage.
positionstring
The integer of the position in storage.
blockNumberstring
Either the hex value of a block number OR a block hash OR One of the following block tags.
  • latest [default] - the blockchain's most recent block
  • safe - a block validated by the beacon chain
  • finalized - a block confirmed by over two-thirds of validators
  • earliest - the first or genesis block
  • pending - transactions broadcasted but not yet included in a block

Response

200
Returns the value at this storage position.

Response params

object
idinteger
jsonrpcstring
resultstring