Skip to content

Missing Functions in spl-token-2022 Crate (e.g., InitializeTokenMetadata) #628

@shrimpwtf

Description

@shrimpwtf

There are several instructions used by the spl-token-2022 program that are entirely missing from the spl-token-2022 Rust crate. For example, instructions starting after discriminator 44 — such as InitializeTokenMetadata — are not defined or documented in the crate.

As a result, attempts to parse these instructions programmatically result in generic 0xc (InvalidInstruction) errors, since the enum or instruction parser in the crate doesn’t recognize them. This severely limits the crate’s utility for developers who need to build tooling, analytics, or custom program integrations based on SPL Token 2022.

Given that these are valid instructions executed on-chain by the official program, it’s critical that the Rust crate remains in sync with all supported instructions of the deployed program. As core contributors and maintainers of the ecosystem, it’s essential to ensure that all instructions — including any metadata or extended functionality — are available and documented in the crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions