MetaplexHydraProgram.signMetadata constructor
MetaplexHydraProgram.signMetadata({
- required SolAddress authority,
- required SolAddress fanout,
- required SolAddress holdingAccount,
- required SolAddress metadata,
- SolAddress tokenMetadataProgram = SPLTokenProgramConst.metaDataProgramId,
Implementation
factory MetaplexHydraProgram.signMetadata({
required SolAddress authority,
required SolAddress fanout,
required SolAddress holdingAccount,
required SolAddress metadata,
SolAddress tokenMetadataProgram = SPLTokenProgramConst.metaDataProgramId,
}) {
return MetaplexHydraProgram(
keys: [
authority.toSignerAndWritable(),
fanout.toReadOnly(),
holdingAccount.toReadOnly(),
metadata.toWritable(),
tokenMetadataProgram.toReadOnly()
],
programId: MetaplexHydraProgramConst.programId,
layout: MetaplexHydraSignMetadataLayout());
}