MetaplexAuctionHouseProgram.withdrawFromFee constructor
MetaplexAuctionHouseProgram.withdrawFromFee({
- required SolAddress authority,
- required SolAddress feeWithdrawalDestination,
- required SolAddress auctionHouseFeeAccount,
- required SolAddress auctionHouse,
- required MetaplexAuctionHouseWithdrawFromFeeLayout layout,
- 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);
}