MetaplexTokenMetaDataProgram.verifyCollection constructor
MetaplexTokenMetaDataProgram.verifyCollection({
- required SolAddress metadata,
- required SolAddress collectionAuthority,
- required SolAddress payer,
- required SolAddress collectionMint,
- required SolAddress collection,
- required SolAddress collectionMasterEditionAccount,
- 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: MetaplexTokenMetaDataVerifyCollectionLayout());
}