MetaplexTokenMetaDataProgram.burnNft constructor

MetaplexTokenMetaDataProgram.burnNft({
  1. required SolAddress metadata,
  2. required SolAddress owner,
  3. required SolAddress mint,
  4. required SolAddress tokenAccount,
  5. required SolAddress masterEditionAccount,
  6. SolAddress? collectionMetadata,
  7. 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());
}