MetaplexTokenMetaDataProgram.setTokenStandard constructor
MetaplexTokenMetaDataProgram.setTokenStandard({
- required SolAddress metadata,
- required SolAddress updateAuthority,
- required SolAddress mint,
- SolAddress? edition,
Implementation
factory MetaplexTokenMetaDataProgram.setTokenStandard({
required SolAddress metadata,
required SolAddress updateAuthority,
required SolAddress mint,
SolAddress? edition,
}) {
return MetaplexTokenMetaDataProgram(
keys: [
metadata.toWritable(),
updateAuthority.toSigner(),
mint.toReadOnly(),
if (edition != null) edition.toReadOnly()
],
programId: MetaplexTokenMetaDataProgramConst.programId,
layout: const MetaplexTokenMetaDataSetTokenStandardLayout());
}