MetaplexTokenMetaDataProgram.burnEditionNft constructor
MetaplexTokenMetaDataProgram.burnEditionNft({
- required SolAddress metadata,
- required SolAddress owner,
- required SolAddress printEditionMint,
- required SolAddress masterEditionMint,
- required SolAddress printEditionTokenAccount,
- required SolAddress masterEditionTokenAccount,
- required SolAddress masterEditionAccount,
- required SolAddress printEditionAccount,
- required SolAddress editionMarkerAccount,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexTokenMetaDataProgram.burnEditionNft({
required SolAddress metadata,
required SolAddress owner,
required SolAddress printEditionMint,
required SolAddress masterEditionMint,
required SolAddress printEditionTokenAccount,
required SolAddress masterEditionTokenAccount,
required SolAddress masterEditionAccount,
required SolAddress printEditionAccount,
required SolAddress editionMarkerAccount,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
}) {
return MetaplexTokenMetaDataProgram(
keys: [
metadata.toWritable(),
owner.toSignerAndWritable(),
printEditionMint.toWritable(),
masterEditionMint.toReadOnly(),
printEditionTokenAccount.toWritable(),
masterEditionTokenAccount.toReadOnly(),
masterEditionAccount.toWritable(),
printEditionAccount.toWritable(),
editionMarkerAccount.toWritable(),
tokenProgram.toReadOnly(),
],
programId: MetaplexTokenMetaDataProgramConst.programId,
layout: const MetaplexTokenMetaDataBurnEditionNftLayout());
}