Module mpl_auction_house::auction_house
source · [−]Functions
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.
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.
Cancel an active bid receipt by setting the canceled_at
field to the current time.
Cancel an active listing receipt by setting the canceled_at
field to the current time.
Close the escrow account of the user.
Create a new Auction House instance.
Deposit amount
into the escrow payment account for your specific wallet.
Execute sale between provided buyer and seller trade state accounts transferring funds to seller wallet and token to buyer wallet.
Create a bid receipt by creating a bid_receipt
account.
Create a listing receipt by creating a listing_receipt
account.
Create a purchase receipt by creating a purchase_receipt
account.
Create a public buy bid by creating a public_buyer_trade_state
account and an escrow_payment
account and funding the escrow with the necessary SOL or SPL token amount.
Create a sell bid by creating a seller_trade_state
account and approving the program as the token delegate.
Update Auction House values such as seller fee basis points, update authority, treasury account, etc.
Withdraw amount
from the escrow payment account for your specific wallet.
Withdraw amount
from the Auction House Fee Account to a provided destination account.
Withdraw amount
from the Auction House Treasury Account to a provided destination account.