MetaplexTokenMetaDataProgram.verifyCollection constructor

MetaplexTokenMetaDataProgram.verifyCollection({
  1. required SolAddress metadata,
  2. required SolAddress collectionAuthority,
  3. required SolAddress payer,
  4. required SolAddress collectionMint,
  5. required SolAddress collection,
  6. required SolAddress collectionMasterEditionAccount,
  7. SolAddress? collectionAuthorityRecord,
})

Implementation

factory MetaplexTokenMetaDataProgram.verifyCollection({
  required SolAddress metadata,
  required SolAddress collectionAuthority,
  required SolAddress payer,
  required SolAddress collectionMint,
  required SolAddress collection,
  required SolAddress collectionMasterEditionAccount,
  SolAddress? collectionAuthorityRecord,
}) {
  return MetaplexTokenMetaDataProgram(
      keys: [
        metadata.toWritable(),
        collectionAuthority.toSignerAndWritable(),
        payer.toSignerAndWritable(),
        collectionMint.toReadOnly(),
        collection.toReadOnly(),
        collectionMasterEditionAccount.toReadOnly(),
        if (collectionAuthorityRecord != null)
          collectionAuthorityRecord.toReadOnly()
      ],
      programId: MetaplexTokenMetaDataProgramConst.programId,
      layout: const MetaplexTokenMetaDataVerifyCollectionLayout());
}