Skip to main content

childstate_getStorage RPC method

Returns a child storage entry at a specific block state.

Parameters

PrefixedStorageKey string REQUIRED

The prefix of the keys you want to retrieve from the child storage

StorageKey string REQUIRED

The key under which the child storage is stored

Hash string

The hash of a specific block in the chain

Returns

StorageData array

An array containing the data of the child storage entry with the specified PrefixedStorageKey

Code Examples

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