typescript-sdk

Home > @3rdweb/sdk > MarketModule

MarketModule class

Warning: This API is now obsolete.

Access this module by calling ThirdwebSDK.getMarketModule()

Signature:

export declare class MarketModule extends ModuleWithRoles<Market> 

Extends: ModuleWithRoles<Market>

Properties

Property Modifiers Type Description
moduleType static ModuleType  
roles static readonly [“admin”, “lister”, “pauser”]  

Methods

Method Modifiers Description
buy(listingId, quantity)    
get(listingId)    
getAll(filter)    
getAllListings(filter)    
getListing(listingId)    
getMarketFeeBps()    
list(assetContract, tokenId, currencyContract, price, quantity, tokensPerBuyer, secondsUntilStart, secondsUntilEnd)    
setMarketFeeBps(fee)    
setModuleMetadata(metadata)    
setRestrictedListerRoleOnly(restricted)    
unlist(listingId, quantity)    
unlistAll(listingId)