Skip to main content

Metaplex program composability libraries

Repository

Metaplex program Solidity libraries

Exmaple contract

CallMetaplexProgram - example contract demonstrating how the Metaplex program Solidity libraries can be used in practice to interact with Solana's Metaplex program.

Libraries

LibMetaplexProgram library

This library provides helper functions for formatting instructions to be executed by Solana's Metaplex program.

Available Metaplex program instructions

  • createMetadataAccountV3: creates a new token metadata account associated with an already initialized token mint account and store provided token metadata on it. A token metadata account can be mutable, meaning that it is possible for the specified updateAuthority account to update the metadata held by the account in the future.

  • updateMetadataAccountV2: updates an existing mutable token metadata account, storing new token metadata on it.

LibMetaplexData library

This library provides a set of getter functions for querying Metaplex accounts data from Solana.

Metaplex token metadata

The following data fields are stored by token metadata accounts and can be queried using the LibMetaplexData library:

string tokenName;
string tokenSymbol;
string uri;
bool isMutable;
bytes32 updateAuthority;

LibMetaplexErrors library

This library provides a set of custom errors that may be thrown when using LibMetaplexProgram and LibMetaplexData libraries.

Was this page helpful?