Skip to main content

childstate_getKeys RPC method

Returns the keys with a specified prefix from child storage. If no prefix is provided, it will return all the keys in the child storage.


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 maximum number of keys to return in a single page of results


StorageKey array

An array containing the keys with the specified prefix from the child storage

Code Examples

curl<API-KEY> \
-H "Content-Type: application/json" \
--data '{"method":"childstate_getKeys","params":["PrefixedStorageKey", "StorageKey"],"id":1,"jsonrpc":"2.0"}'