Skip to main content

Crate apl_token_metadata

Crate apl_token_metadata 

Source
Expand description

On-chain token metadata program for the Arch runtime.

This crate provides:

  • deterministic PDA helpers for metadata and attribute accounts
  • instruction and processor logic for create/update/finalize flows
  • state definitions for metadata payloads stored on chain

Package details:

  • Cargo package: apl-token-metadata
  • Library crate: apl_token_metadata
  • Program ID and PDA helpers live in this file
  • Instruction, state, and processor logic live in sibling modules

Modules§

error
Error types
instruction
Instruction types
processor
Program state processor
state
State types and serialization sizes

Constants§

ATTRIBUTES_SEED
PDA seed for attributes account
ID
The const program ID.
METADATA_SEED
PDA seed for metadata account

Functions§

check_id
Returns true if given pubkey is the program ID.
check_program_account
Checks that the supplied program ID is the correct one for Arch Token Metadata
find_attributes_pda_with_program
Helper to derive the TokenMetadataAttributes PDA for a given mint
find_metadata_pda_with_program
Helper to derive the TokenMetadata PDA for a given mint
id
Returns the program ID.