MetaplexAuctionHouseProgram.closeEscrowAccount constructor

MetaplexAuctionHouseProgram.closeEscrowAccount({
  1. required SolAddress wallet,
  2. required SolAddress escrowPaymentAccount,
  3. required SolAddress auctionHouse,
  4. required MetaplexAuctionHouseCloseEscrowAccountLayout layout,
  5. 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);
}