Skip to main content

childstate_getStorageEntries RPC method

Returns child storage entries for multiple keys 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

An array of strings representing the keys under which the child storage entries are stored

Hash string

The hash of a specific block in the chain. Providing this parameter ensures that the storage entries are fetched from the state corresponding to that block. If not provided, the request will return the storage entries from the latest block

Returns

StorageData array

An array containing the data of the child storage entries with the specified PrefixedStorageKey and StorageKey

Code Examples

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