MetaplexAuctioneerProgram class

Inheritance

Constructors

MetaplexAuctioneerProgram({required List<AccountMeta> keys, required SolAddress programId, required ProgramLayout layout})
MetaplexAuctioneerProgram.authorize({required SolAddress wallet, required SolAddress auctionHouse, required SolAddress auctioneerAuthority, SolAddress systemProgram = SystemProgramConst.programId})
Authorize the Auctioneer to manage an Auction House.
factory
MetaplexAuctioneerProgram.buy({required SolAddress auctionHouseProgram, required SolAddress listingConfig, required SolAddress seller, required SolAddress wallet, required SolAddress paymentAccount, required SolAddress transferAuthority, required SolAddress treasuryMint, required SolAddress tokenAccount, required SolAddress metadata, required SolAddress escrowPaymentAccount, required SolAddress authority, required SolAddress auctionHouse, required SolAddress auctionHouseFeeAccount, required SolAddress buyerTradeState, required SolAddress auctioneerAuthority, required SolAddress ahAuctioneerPda, required MetaplexAuctioneerBuyLayout layout, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress systemProgram = SystemProgramConst.programId, SolAddress rent = SystemProgramConst.sysvarRentPubkey})
Create a private buy bid by creating a buyer_trade_state account and an escrow_payment account and funding the escrow with the necessary SOL or SPL token amount.
factory
MetaplexAuctioneerProgram.cancel({required SolAddress auctionHouseProgram, required SolAddress listingConfig, required SolAddress seller, required SolAddress wallet, required SolAddress tokenAccount, required SolAddress tokenMint, required SolAddress authority, required SolAddress auctionHouse, required SolAddress auctionHouseFeeAccount, required SolAddress tradeState, required SolAddress auctioneerAuthority, required SolAddress ahAuctioneerPda, required MetaplexAuctioneerCancelLayout layout, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId})
Cancel a bid or ask by revoking the token delegate, transferring all lamports from the trade state account to the fee payer, and setting the trade state account data to zero so it can be garbage collected.
factory
MetaplexAuctioneerProgram.deposit({required SolAddress auctionHouseProgram, required SolAddress wallet, required SolAddress paymentAccount, required SolAddress transferAuthority, required SolAddress escrowPaymentAccount, required SolAddress treasuryMint, required SolAddress authority, required SolAddress auctionHouse, required SolAddress auctionHouseFeeAccount, required SolAddress auctioneerAuthority, required SolAddress ahAuctioneerPda, required MetaplexAuctioneerDepositLayout layout, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress systemProgram = SystemProgramConst.programId, SolAddress rent = SystemProgramConst.sysvarRentPubkey})
Deposit amount into the escrow payment account for your specific wallet.
factory
MetaplexAuctioneerProgram.executeSale({required SolAddress auctionHouseProgram, required SolAddress listingConfig, required SolAddress buyer, required SolAddress seller, required SolAddress tokenAccount, required SolAddress tokenMint, required SolAddress metadata, required SolAddress treasuryMint, required SolAddress escrowPaymentAccount, required SolAddress sellerPaymentReceiptAccount, required SolAddress buyerReceiptTokenAccount, required SolAddress authority, required SolAddress auctionHouse, required SolAddress auctionHouseFeeAccount, required SolAddress auctionHouseTreasury, required SolAddress buyerTradeState, required SolAddress sellerTradeState, required SolAddress freeTradeState, required SolAddress auctioneerAuthority, required SolAddress ahAuctioneerPda, required SolAddress programAsSigner, required MetaplexAuctioneerExecuteSaleLayout layout, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress systemProgram = SystemProgramConst.programId, SolAddress rent = SystemProgramConst.sysvarRentPubkey, SolAddress ata = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
Execute sale between provided buyer and seller trade state accounts transferring funds to seller wallet and token to buyer wallet.
factory
MetaplexAuctioneerProgram.sell({required SolAddress auctionHouseProgram, required SolAddress listingConfig, required SolAddress wallet, required SolAddress tokenAccount, required SolAddress metadata, required SolAddress authority, required SolAddress auctionHouse, required SolAddress auctionHouseFeeAccount, required SolAddress sellerTradeState, required SolAddress freeSellerTradeState, required SolAddress auctioneerAuthority, required SolAddress ahAuctioneerPda, required SolAddress programAsSigner, required MetaplexAuctioneerSellLayout layout, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress systemProgram = SystemProgramConst.programId, SolAddress rent = SystemProgramConst.sysvarRentPubkey, SolAddress ata = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
Create a sell bid by creating a seller_trade_state account and approving the program as the token delegate.
factory
MetaplexAuctioneerProgram.withdraw({required SolAddress auctionHouseProgram, required SolAddress wallet, required SolAddress receiptAccount, required SolAddress escrowPaymentAccount, required SolAddress treasuryMint, required SolAddress authority, required SolAddress auctionHouse, required SolAddress auctionHouseFeeAccount, required SolAddress auctioneerAuthority, required SolAddress ahAuctioneerPda, required MetaplexAuctioneerWithdrawLayout layout, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress systemProgram = SystemProgramConst.programId, SolAddress rent = SystemProgramConst.sysvarRentPubkey, SolAddress ata = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
Withdraw amount from the escrow payment account for your specific wallet.
factory

Properties

data List<int>
Program input.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
keys List<AccountMeta>
Public keys to include in this transaction Boolean represents whether this pubkey needs to sign the transaction
finalinherited
programId SolAddress
Program Id to execute.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited