MetaplexAuctionHouseProgram.auctioneerWithdraw constructor

MetaplexAuctionHouseProgram.auctioneerWithdraw({
  1. required SolAddress wallet,
  2. required SolAddress receiptAccount,
  3. required SolAddress escrowPaymentAccount,
  4. required SolAddress treasuryMint,
  5. required SolAddress authority,
  6. required SolAddress auctioneerAuthority,
  7. required SolAddress auctionHouse,
  8. required SolAddress auctionHouseFeeAccount,
  9. required SolAddress ahAuctioneerPda,
  10. required MetaplexAuctionHouseAuctioneerWithdrawLayout layout,
  11. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  12. SolAddress systemProgram = SystemProgramConst.programId,
  13. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
  14. 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);
}