MetaplexTokenMetadataProgram class

Metaplex Token Metadata Program

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
pubkey Pubkey
The public key that identifies this program (i.e. program id).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDeployed(Connection connection) Future<void>
Check that the program has been deployed to the cluster and is an executable program.
inherited
createTransactionIntruction(Enum instruction, {required List<AccountMeta> keys, List<Iterable<int>> data = const []}) TransactionInstruction
Creates a TransactionInstruction for the program instruction.
inherited
encodeInstruction<T extends Enum>(T instruction) Iterable<int>
Encodes the program instruction.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createMetadataAccountV3({required Pubkey metadata, required Pubkey mint, required Pubkey mintAuthority, required Pubkey payer, required Pubkey updateAuthority, required DataV2 dataV2, bool isMutable = true, MetadataCollectionDetails? collectionDetails}) TransactionInstruction
This instruction creates and initializes a new Metadata account for a given Mint account. It is required that the Mint account has been created and initialized by the Token Program before executing this instruction.
findEditionAddress(Pubkey mint) ProgramAddress
Find the master edition account address of the given mint.
findMetadataAddress(Pubkey mint) ProgramAddress
Find the metadata account address of the given mint.
updateMetadataAccountV2({required Pubkey metadata, required Pubkey updateAuthority, DataV2? dataV2, Pubkey? newUpdateAuthority, bool? primarySaleHappened, bool? isMutable}) TransactionInstruction
This instruction enables us to update parts of the Metadata account. Note that some fields have constraints limiting how they can be updated. For instance, once the isMutable field is set to false, it cannot be changed back to true.

Constants

editionSeed → const String
The edition account seed.
metadataSeed → const String
The metadata account seed.