MetaplexAuctionHouseProgram.closeEscrowAccount constructor
MetaplexAuctionHouseProgram.closeEscrowAccount({
- required SolAddress wallet,
- required SolAddress escrowPaymentAccount,
- required SolAddress auctionHouse,
- required MetaplexAuctionHouseCloseEscrowAccountLayout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
Close the escrow account of the user.
Implementation
factory MetaplexAuctionHouseProgram.closeEscrowAccount({
/// User wallet account.
required SolAddress wallet,
/// Buyer escrow payment account PDA.
required SolAddress escrowPaymentAccount,
/// Auction House instance PDA account.
required SolAddress auctionHouse,
required MetaplexAuctionHouseCloseEscrowAccountLayout layout,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexAuctionHouseProgram(keys: [
wallet.toSigner(),
escrowPaymentAccount.toWritable(),
auctionHouse.toReadOnly(),
systemProgram.toReadOnly()
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}