⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

state_getKeys

Description

Enumerate storage keys for a prefix. Use for pagination when exploring large maps, then query values with state_getStorage.

Returns storage keys for the given key prefix.

Code Examples

curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
+ -H 'Content-Type: application/json' \
+ -d '{"jsonrpc":"2.0","method":"state_getKeys","params":["0x3a636f6465", null],"id":1}'