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