Skip to main content

childstate_getStorageEntries RPC Method

Returns child storage entries for multiple keys at a specific block state.

Updated on
Oct 4, 2023

childstate_getStorageEntries RPC Method

Parameters

PrefixedStorageKey
string
REQUIRED
The prefix of the storage entry keys you want to retrieve from the child storage
StorageKey
array
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
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"childstate_getStorageEntries","params":["PrefixedStorageKey", "StorageKey"],"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