MetaplexAuctionHouseProgram.withdrawFromFee constructor

MetaplexAuctionHouseProgram.withdrawFromFee({
  1. required SolAddress authority,
  2. required SolAddress feeWithdrawalDestination,
  3. required SolAddress auctionHouseFeeAccount,
  4. required SolAddress auctionHouse,
  5. required MetaplexAuctionHouseWithdrawFromFeeLayout layout,
  6. SolAddress systemProgram = SystemProgramConst.programId,
})

Withdraw amount from the Auction House Fee Account to a provided destination account.

Implementation

factory MetaplexAuctionHouseProgram.withdrawFromFee({
  /// Authority key for the Auction House.
  required SolAddress authority,

  /// Account that pays for fees if the marketplace executes sales.
  required SolAddress feeWithdrawalDestination,

  /// Auction House instance fee account.
  required SolAddress auctionHouseFeeAccount,

  /// Auction House instance PDA account.
  required SolAddress auctionHouse,
  required MetaplexAuctionHouseWithdrawFromFeeLayout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexAuctionHouseProgram(keys: [
    authority.toSigner(),
    feeWithdrawalDestination.toWritable(),
    auctionHouseFeeAccount.toWritable(),
    auctionHouse.toWritable(),
    systemProgram.toReadOnly()
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}