Skip to main content

class Marketplace

class Marketplace
: public Thirdweb.Routable

Interact with a Marketplace contract.

Summary

MembersTypeDescriptions
chainvariable
addressvariable
directvariableHandle direct listings
auctionvariableHandle auctions
MarketplacefunctionInteract with a Marketplace contract.
GetListingfunctionREAD FUNCTIONS.
GetAllListingsfunctionGet all listings in this marketplace (including non-buyable ones)
GetActiveListingsfunctionGet active listings in this marketplace (only ones that can be bought)
GetOffersfunctionGet all offers on a listing
BuyListingfunctionWRITE FUNCTIONS.
MakeOfferfunctionMake an offer on a listing

Members

public string chain


public string address


public MarketplaceDirect direct

Handle direct listings


public MarketplaceAuction auction

Handle auctions


public inline Marketplace(string chain,string address)

Interact with a Marketplace contract.


public inline async Task< Listing>GetListing(string listingId)

READ FUNCTIONS.

Get a listing information


public inline async Task< List< Listing> >GetAllListings(MarketplaceFilter filter)

Get all listings in this marketplace (including non-buyable ones)


public inline async Task< List< Listing> >GetActiveListings(MarketplaceFilter filter)

Get active listings in this marketplace (only ones that can be bought)


public inline async Task< List< Offer> >GetOffers(string listingId)

Get all offers on a listing


public inline async Task< TransactionResult>BuyListing(string listingId,int quantityDesired,string receiverAddress)

WRITE FUNCTIONS.

Buy a listing


public inline async Task< TransactionResult>MakeOffer(string listingId,string pricePerToken,int? quantity)

Make an offer on a listing