Skip to main content

state_getKeys RPC Method

Returns the keys with prefix, leave empty to get all the keys.

Updated on
Jul 18, 2025

state_getKeys RPC Method

Parameters

prefix
string
REQUIRED
The prefix to filter keys. Leave empty to get all keys
hash
string
The block hash. If not provided, uses the latest block

Returns

result
array
An array of storage keys
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free