MetaplexTokenMetaDataProgram.createMasterEdition constructor
MetaplexTokenMetaDataProgram.createMasterEdition({
- required SolAddress edition,
- required SolAddress mint,
- required SolAddress updateAuthority,
- required SolAddress mintAuthority,
- required SolAddress payer,
- required SolAddress metadata,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexTokenMetaDataProgram.createMasterEdition({
required SolAddress edition,
required SolAddress mint,
required SolAddress updateAuthority,
required SolAddress mintAuthority,
required SolAddress payer,
required SolAddress metadata,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
}) {
return MetaplexTokenMetaDataProgram(
keys: [
edition.toWritable(),
mint.toWritable(),
updateAuthority.toSigner(),
mintAuthority.toSigner(),
payer.toSignerAndWritable(),
metadata.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
rent.toReadOnly(),
],
programId: MetaplexTokenMetaDataProgramConst.programId,
layout: const MetaplexTokenMetaDataCreateMasterEditionLayout());
}