MetaplexTokenMetaDataProgram.createMetadataAccountV2 constructor
MetaplexTokenMetaDataProgram.createMetadataAccountV2({
- required SolAddress metadata,
- required SolAddress mint,
- required SolAddress mintAuthority,
- required SolAddress payer,
- required SolAddress updateAuthority,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress? rent,
Implementation
factory MetaplexTokenMetaDataProgram.createMetadataAccountV2({
required SolAddress metadata,
required SolAddress mint,
required SolAddress mintAuthority,
required SolAddress payer,
required SolAddress updateAuthority,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress? rent,
}) {
return MetaplexTokenMetaDataProgram(
keys: [
metadata.toWritable(),
mint.toReadOnly(),
mintAuthority.toSigner(),
payer.toSignerAndWritable(),
updateAuthority.toReadOnly(),
systemProgram.toReadOnly(),
if (rent != null) rent.toReadOnly(),
],
programId: MetaplexTokenMetaDataProgramConst.programId,
layout: MetaplexTokenMetaDataCreateMetadataAccountV2Layout());
}