Marketplace
When using the Marketplace
smart contract, additional top-level functionality is available to use.
You will be able to access the DirectListings
, EnglishAuctions
, and Offers
properties of the Marketplace
object.
DirectListings
Interact with direct listings in the marketplace.
GetAll
Retrieve all direct listings.
GetAllValid
Retrieve all valid direct listings.
GetListing
Retrieve a specific direct listing by ID.
GetTotalCount
Retrieve the total count of direct listings.
IsBuyerApprovedForListing
Check if a buyer is approved for a reserved listing.
IsCurrencyApprovedForListing
Check if a currency is approved for a listing.
ApproveBuyerForReservedListing
Approve a buyer for a reserved listing.
BuyFromListing
Buy from a listing.
CancelListing
Cancel a listing.
CreateListing
Create a new listing.
RevokeBuyerApprovalForReservedListing
Revoke buyer approval for a reserved listing.
RevokeCurrencyApprovalForListing
Revoke currency approval for a listing.
UpdateListing
Update a listing.
EnglishAuctions
Interact with English auctions in the marketplace.
GetAll
Retrieve all English auctions.
GetAllValid
Retrieve all valid English auctions.
GetAuction
Retrieve a specific English auction by ID.
GetBidBufferBps
Retrieve the bid buffer basis points for an auction.
GetMinimumNextBid
Retrieve the minimum next bid for an auction.
GetTotalCount
Retrieve the total count of English auctions.
GetWinner
Retrieve the winner of an auction.
GetWinningBid
Retrieve the winning bid for an auction.
IsWinningBid
Check if a bid is the winning bid.
BuyoutAuction
Buyout an auction.
CancelAuction
Cancel an auction.
CloseAuctionForBidder
Close an auction for the bidder.
CloseAuctionForSeller
Close an auction for the seller.
CreateAuction
Create a new auction.
ExecuteSale
Execute the sale for an auction.
MakeBid
Make a bid on an auction.
Offers
Interact with offers in the marketplace.
GetAll
Retrieve all offers.
GetAllValid
Retrieve all valid offers.
GetOffer
Retrieve a specific offer by ID.
GetTotalCount
Retrieve the total count of offers.
AcceptOffer
Accept an offer.
CancelOffer
Cancel an offer.
MakeOffer
Make a new offer.