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