Docs

state_getKeys (Mythos)

Enumerate Mythos storage keys for a prefix using state_getKeys.

Returns all storage keys with the given prefix. This is useful when inspecting NFT collections, marketplace listings, or DAO proposals stored in maps.

Parameters

ParameterTypeRequiredDescription
keyPrefixstringYesHex-encoded storage key prefix (usually twox128(pallet) + twox128(storageItem)).
atstringNoBlock hash to query. Defaults to latest.

Code Examples

Tips

  • The response can be large for popular pallets; prefer state_getKeysPaged for pagination.
  • Combine with state_getStorage to fetch the associated values.