eth_getStorageAt

eth_getStorageAt - Celo

eth_getStorageAt. Retrieves the value stored at a specific storage position of a given address

eth_getStorageAt - celo [Value: 14CU]
Retrieves the value stored at a specific storage slot of a contract address at a given block
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://celo.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 of the smart contract.
positionstring
The storage slot position in hexadecimal format.
blockNumberstring
(optional) Block number as an integer, or string
  • latest [default] - The most recent block in the blockchain (default).
  • earliest - The first block, also known as the genesis block.
  • pending - Transactions that have been broadcast but not yet included in a block.

Response

200

Response params

object
idinteger
jsonrpcstring
resultstring
The value stored at the specified storage slot, returned as a hexadecimal string.