class Marketplace
class Marketplace
: public Thirdweb.Routable
Interact with a Marketplace contract.
Summary
Members | Type | Descriptions |
---|---|---|
chain | variable | |
address | variable | |
direct | variable | Handle direct listings |
auction | variable | Handle auctions |
Marketplace | function | Interact with a Marketplace contract. |
GetListing | function | READ FUNCTIONS. |
GetAllListings | function | Get all listings in this marketplace (including non-buyable ones) |
GetActiveListings | function | Get active listings in this marketplace (only ones that can be bought) |
GetOffers | function | Get all offers on a listing |
BuyListing | function | WRITE FUNCTIONS. |
MakeOffer | function | Make 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