Skip to main content

state_getStorage RPC Method

Retrieves the storage for a key.

Updated on
Oct 4, 2023

state_getStorage RPC Method

Parameters

StorageKey
string
REQUIRED
The key for which you want to retrieve the storage data
BlockHash
string
The hash of a specific block in the chain

Returns

StorageData
string
The data stored in the blockchain's storage for the specified storage key
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"state_getStorage","params":["0x06de3d8a54d27e44a9d5ce189618f22d4e7b9012096b41c4eb3aaf947f6ea429"],"id":1,"jsonrpc":"2.0"}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free