Skip to main content

state_getKeysPaged RPC Method

Retrieve keys that have a specified prefix, with support for pagination.

Updated on
Oct 04, 2023

Parameters

StorageKey
string | null
REQUIRED

The key prefix to retrieve matching keys from

u32
integer
REQUIRED

An unsigned 32-bit integer, specifying the number of results to include per page

StartKey
string

This parameter is used for pagination, indicating the starting key to fetch results from. If not provided, the request will start from the beginning

BlockHash
string

The hash of a specific block in the chain. Providing this parameter ensures that the keys are queried at the state corresponding to that block. If not provided, the request will use the latest block

Returns

result
array

A array of strings representing the retrieved keys with the specified prefix

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free