MetaplexAuctionHouseProgram.auctioneerWithdraw constructor
MetaplexAuctionHouseProgram.auctioneerWithdraw({
- required SolAddress wallet,
- required SolAddress receiptAccount,
- required SolAddress escrowPaymentAccount,
- required SolAddress treasuryMint,
- required SolAddress authority,
- required SolAddress auctioneerAuthority,
- required SolAddress auctionHouse,
- required SolAddress auctionHouseFeeAccount,
- required SolAddress ahAuctioneerPda,
- required MetaplexAuctionHouseAuctioneerWithdrawLayout 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.auctioneerWithdraw({
required SolAddress wallet,
required SolAddress receiptAccount,
required SolAddress escrowPaymentAccount,
required SolAddress treasuryMint,
required SolAddress authority,
required SolAddress auctioneerAuthority,
required SolAddress auctionHouse,
required SolAddress auctionHouseFeeAccount,
required SolAddress ahAuctioneerPda,
required MetaplexAuctionHouseAuctioneerWithdrawLayout 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(),
auctioneerAuthority.toSigner(),
auctionHouse.toReadOnly(),
auctionHouseFeeAccount.toWritable(),
ahAuctioneerPda.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
ataProgram.toReadOnly(),
rent.toReadOnly(),
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}