Skip to main content

state_getStorage RPC method

Retrieves the storage for a key.

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. If not provided, the request will return the runtime version from the latest block

Returns

StorageData string

The data stored in the blockchain's storage for the specified storage key

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"state_getStorage","params":["0x06de3d8a54d27e44a9d5ce189618f22d4e7b9012096b41c4eb3aaf947f6ea429"],"id":1,"jsonrpc":"2.0"}'