MetaplexTokenMetaDataProgram.burnNft constructor
MetaplexTokenMetaDataProgram.burnNft({
- required SolAddress metadata,
- required SolAddress owner,
- required SolAddress mint,
- required SolAddress tokenAccount,
- required SolAddress masterEditionAccount,
- SolAddress? collectionMetadata,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexTokenMetaDataProgram.burnNft({
required SolAddress metadata,
required SolAddress owner,
required SolAddress mint,
required SolAddress tokenAccount,
required SolAddress masterEditionAccount,
SolAddress? collectionMetadata,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
}) {
return MetaplexTokenMetaDataProgram(
keys: [
metadata.toWritable(),
owner.toSignerAndWritable(),
mint.toWritable(),
tokenAccount.toWritable(),
masterEditionAccount.toWritable(),
tokenProgram.toReadOnly(),
if (collectionMetadata != null) collectionMetadata.toWritable()
],
programId: MetaplexTokenMetaDataProgramConst.programId,
layout: MetaplexTokenMetaDataburnNftLayout());
}