MetaplexTokenMetadataProgram class
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
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.