MetaplexTokenMetaDataProgram.createV1 constructor
MetaplexTokenMetaDataProgram.createV1({
- required SolAddress metadata,
- SolAddress? masterEdition,
- required SolAddress mint,
- required SolAddress authority,
- required SolAddress payer,
- required SolAddress updateAuthority,
- required MetaplexTokenMetaDataCreateV1Layout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress sysvarInstructions = SystemProgramConst.sysvarInstructionsPubkey,
Implementation
factory MetaplexTokenMetaDataProgram.createV1({
required SolAddress metadata,
SolAddress? masterEdition,
required SolAddress mint,
required SolAddress authority,
required SolAddress payer,
required SolAddress updateAuthority,
required MetaplexTokenMetaDataCreateV1Layout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress sysvarInstructions = SystemProgramConst.sysvarInstructionsPubkey,
}) {
return MetaplexTokenMetaDataProgram(keys: [
metadata.toWritable(),
masterEdition?.toWritable() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
mint.toWritable(),
authority.toSigner(),
payer.toSignerAndWritable(),
updateAuthority.toReadOnly(),
systemProgram.toReadOnly(),
sysvarInstructions.toReadOnly(),
tokenProgram.toReadOnly(),
], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}