Skip to main content

childstate_getKeysPaged RPC Method

Returns the keys with prefix from a child storage with pagination support.

Updated on
Oct 4, 2023

childstate_getKeysPaged RPC Method

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
u32
integer
REQUIRED
The maximum number of keys to return in a single page of results
StorageKey
string
The key at which to start the page of results. If not provided, it will start from the beginning
Hash
string
The hash of a specific block in the chain

Returns

StorageKey
array
An array containing the keys with the specified prefix from the child storage
Request
1
curl https://docs-demo.dot-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"childstate_getKeysPaged","params":["PrefixedStorageKey", "StorageKey", "u32"],"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