Skip to content

TypeError: Cannot read property 'keys' of undefined when calling api.query.authorityDiscovery.keys() #424

Open
@ltfschoen

Description

@ltfschoen

If you follow the API docs here https://polkadot.js.org/docs/substrate/storage#authoritydiscovery and call api.query.authorityDiscovery.keys() after connecting to WS provider wss://rpc.polkadot.io, it returns TypeError: Cannot read property 'keys' of undefined. This was reported here https://substrate.stackexchange.com/questions/7761/how-to-query-api-query-authoritydiscovery-keys/7789#7789

Is it the case that it has been replaced with https://polkadot.js.org/docs/substrate/runtime#authoritydiscoveryapi ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions