Skip to content

Provide metadata for accounts so account fields can be read via anchor #1192

@swaglord8

Description

@swaglord8

In all the Solana examples, view functions require a signer with funds simply to fetch data from an account. This works ok for tests but not when fetching from a browser using phantom as it gets disruptive

I think there should be more examples that show how one can use something like program.account.state.fetch(<account>) to get data from a program which I've seen used in anchor projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    solanaThe Solana target

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions