MetaplexTokenMetaDataProgram.createMetadataAccountV3 constructor

MetaplexTokenMetaDataProgram.createMetadataAccountV3({
  1. required SolAddress metadata,
  2. required SolAddress mint,
  3. required SolAddress mintAuthority,
  4. required SolAddress payer,
  5. required SolAddress updateAuthority,
  6. required MetaplexTokenMetaDataCreateMetadataAccountV3Layout layout,
  7. SolAddress systemProgram = SystemProgramConst.programId,
  8. SolAddress? rent,
})

Implementation

factory MetaplexTokenMetaDataProgram.createMetadataAccountV3({
  required SolAddress metadata,
  required SolAddress mint,
  required SolAddress mintAuthority,
  required SolAddress payer,
  required SolAddress updateAuthority,
  required MetaplexTokenMetaDataCreateMetadataAccountV3Layout layout,
  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: layout);
}