MetaplexTokenMetaDataProgram.unverifyCollection constructor

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

Implementation

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