MetaplexTokenMetaDataProgram.createMasterEditionV3 constructor

MetaplexTokenMetaDataProgram.createMasterEditionV3({
  1. required SolAddress edition,
  2. required SolAddress mint,
  3. required SolAddress updateAuthority,
  4. required SolAddress mintAuthority,
  5. required SolAddress payer,
  6. required SolAddress metadata,
  7. required MetaplexTokenMetaDataCreateMasterEditionV3Layout layout,
  8. SolAddress systemProgram = SystemProgramConst.programId,
  9. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  10. SolAddress? rent,
})

Implementation

factory MetaplexTokenMetaDataProgram.createMasterEditionV3({
  required SolAddress edition,
  required SolAddress mint,
  required SolAddress updateAuthority,
  required SolAddress mintAuthority,
  required SolAddress payer,
  required SolAddress metadata,
  required MetaplexTokenMetaDataCreateMasterEditionV3Layout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
  SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  SolAddress? rent,
}) {
  return MetaplexTokenMetaDataProgram(keys: [
    edition.toWritable(),
    mint.toWritable(),
    updateAuthority.toSigner(),
    mintAuthority.toSigner(),
    payer.toSignerAndWritable(),
    metadata.toWritable(),
    tokenProgram.toReadOnly(),
    systemProgram.toReadOnly(),
    if (rent != null) rent.toReadOnly()
  ], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}