11 releases (stable)
1.11.1 | May 23, 2023 |
---|---|
1.10.0 | May 23, 2023 |
1.7.5 | Dec 17, 2023 |
1.7.4 | Aug 29, 2023 |
#5 in #metaplex
213 downloads per month
Used in 10 crates
(9 directly)
600KB
13K
SLoC
Metaplex Token Metadata
The Token Metadata program is one of the most important programs when dealing with NFTs on the Solana blockchain. Its main goal is to attach additional data to Fungible or Non-Fungible Tokens on Solana.
Building
From the root directory of the repository:
cargo build-bpf --bpf-out-dir ../../test-programs/
Testing (BPF)
From the root directory of the repository:
cargo test-bpf --bpf-out-dir ../../test-programs/
Testing (TypeScript)
Integration tests are available using Amman.
After building the program, go to the folder ../js
and run:
yarn install
On a separate terminal, start Amman from the ../js
folder:
yarn amman:start
Back to your main terminal on the ../js
folder, run:
yarn build && yarn test
Source
The Token Metadata Program's source is available on github
Interface
The on-chain Token Metadata program is written in Rust and available on crates.io as mpl-token-metadata and docs.rs.
Documentation
Full docs for this program can be found here.
Dependencies
~24–33MB
~542K SLoC