MetaplexTokenMetaDataProgram.transferOutOfEscrow constructor
MetaplexTokenMetaDataProgram.transferOutOfEscrow({
- required SolAddress escrow,
- required SolAddress metadata,
- required SolAddress payer,
- required SolAddress attributeMint,
- required SolAddress attributeSrc,
- required SolAddress attributeDst,
- required SolAddress escrowMint,
- required SolAddress escrowAccount,
- required SolAddress sysvarInstructions,
- required MetaplexTokenMetaDataTransferOutOfEscrowLayout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress ataProgram = AssociatedTokenAccountProgramConst.associatedTokenProgramId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress? authority,
Implementation
factory MetaplexTokenMetaDataProgram.transferOutOfEscrow({
required SolAddress escrow,
required SolAddress metadata,
required SolAddress payer,
required SolAddress attributeMint,
required SolAddress attributeSrc,
required SolAddress attributeDst,
required SolAddress escrowMint,
required SolAddress escrowAccount,
required SolAddress sysvarInstructions,
required MetaplexTokenMetaDataTransferOutOfEscrowLayout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress ataProgram =
AssociatedTokenAccountProgramConst.associatedTokenProgramId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress? authority,
}) {
return MetaplexTokenMetaDataProgram(keys: [
escrow.toReadOnly(),
metadata.toWritable(),
payer.toSignerAndWritable(),
attributeMint.toReadOnly(),
attributeSrc.toWritable(),
attributeDst.toWritable(),
escrowMint.toReadOnly(),
escrowAccount.toReadOnly(),
systemProgram.toReadOnly(),
ataProgram.toReadOnly(),
tokenProgram.toReadOnly(),
sysvarInstructions.toReadOnly(),
if (authority != null) authority.toSigner()
], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}