state_getKeysPaged RPC Method
Parameters
StorageKey
string
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
string
A string representing the retrieved keys with the specified prefix
Request
1curl https://docs-demo.dot-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"state_getKeysPaged","params":[null, 2],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free