32 stable releases

new 1.8.0 Feb 2, 2023
1.6.5 Dec 30, 2022
1.6.2 Nov 29, 2022
1.3.3 Jul 20, 2022
1.2.5 Feb 24, 2022

#1466 in Magic Beans

Download history 4202/week @ 2022-10-13 4804/week @ 2022-10-20 4946/week @ 2022-10-27 3883/week @ 2022-11-03 4275/week @ 2022-11-10 3841/week @ 2022-11-17 3211/week @ 2022-11-24 3404/week @ 2022-12-01 3234/week @ 2022-12-08 2577/week @ 2022-12-15 2123/week @ 2022-12-22 2209/week @ 2022-12-29 2525/week @ 2023-01-05 2520/week @ 2023-01-12 3294/week @ 2023-01-19 3079/week @ 2023-01-26

11,818 downloads per month
Used in 63 crates (54 directly)

Custom license

560KB
12K 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

~10–18MB
~302K SLoC