MetaplexTokenMetaDataProgram.burnEditionNft constructor

MetaplexTokenMetaDataProgram.burnEditionNft({
  1. required SolAddress metadata,
  2. required SolAddress owner,
  3. required SolAddress printEditionMint,
  4. required SolAddress masterEditionMint,
  5. required SolAddress printEditionTokenAccount,
  6. required SolAddress masterEditionTokenAccount,
  7. required SolAddress masterEditionAccount,
  8. required SolAddress printEditionAccount,
  9. required SolAddress editionMarkerAccount,
  10. 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: MetaplexTokenMetaDataBurnEditionNftLayout());
}