Skip to content

How to subscribe to storage values with generated types #324

@clangenb

Description

@clangenb

The StateApi exposes a method to subscribe to a storage changes: https://github.com/rankanizer/polkadart/blob/e9b690f1dd4ef1828cbfc51272dc7f32b4261ace/packages/polkadart/lib/apis/state.dart#L174

However, the generated code doesn't create a method for subscribing to a storage value. Additionally, the generated type containing the knowledge of the storage key hash and of how to decode this type is private.

Am I missing something here, or can we currently not subscribe with the concrete type information of the generated code?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions