MetaplexTokenMetaDataProgram.createMasterEditionV3 constructor
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,
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);
}