MetaplexAuctionHouseProgram.withdraw constructor
MetaplexAuctionHouseProgram.withdraw({
- required SolAddress wallet,
- required SolAddress receiptAccount,
- required SolAddress escrowPaymentAccount,
- required SolAddress treasuryMint,
- required SolAddress authority,
- required SolAddress auctionHouse,
- required SolAddress auctionHouseFeeAccount,
- required MetaplexAuctionHouseWithdrawLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress ataProgram = AssociatedTokenAccountProgramConst.associatedTokenProgramId,
Withdraw amount
from the escrow payment account for your specific wallet.
Implementation
factory MetaplexAuctionHouseProgram.withdraw(
{required SolAddress wallet,
required SolAddress receiptAccount,
required SolAddress escrowPaymentAccount,
required SolAddress treasuryMint,
required SolAddress authority,
required SolAddress auctionHouse,
required SolAddress auctionHouseFeeAccount,
required MetaplexAuctionHouseWithdrawLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress ataProgram =
AssociatedTokenAccountProgramConst.associatedTokenProgramId}) {
return MetaplexAuctionHouseProgram(keys: [
wallet.toReadOnly(),
receiptAccount.toWritable(),
escrowPaymentAccount.toWritable(),
treasuryMint.toReadOnly(),
authority.toReadOnly(),
auctionHouse.toReadOnly(),
auctionHouseFeeAccount.toWritable(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
ataProgram.toReadOnly(),
rent.toReadOnly()
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}