MarketplaceV3 class
Create your own whitelabel marketplace that enables users to buy and sell any digital assets.
Example
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
const sdk = new ThirdwebSDK("{{chainName}}");
const contract = await sdk.getContract("{{contract_address}}", "marketplace");
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(network, address, storage, options, abi, chainId, contractWrapper) | Constructs a new instance of the MarketplaceV3 class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
abi | Abi | ||
chainId | readonly | number | |
contractRoles | static | readonly ["admin", "lister", "asset"] | |
directListings | readonly | MarketplaceV3DirectListings<DirectListingsLogic> | Direct listings |
encoder | ContractEncoder<MarketplaceV3Contract> | ||
englishAuctions | readonly | MarketplaceV3EnglishAuctions<EnglishAuctionsLogic> | Auctions |
estimator | GasCostEstimator<MarketplaceV3Contract> | ||
events | ContractEvents<MarketplaceV3Contract> | ||
metadata | ContractMetadata<MarketplaceV3Contract, typeof MarketplaceContractSchema> | ||
offers | readonly | MarketplaceV3Offers<OffersLogic> | Offers |
platformFees | ContractPlatformFee<MarketplaceV3Contract> | ||
roles | ContractRoles<MarketplaceV3Contract, typeof MarketplaceV3.contractRoles[number]> |
Methods
Method | Modifiers | Description |
---|---|---|
getAddress() | ||
onNetworkUpdated(network) |
Signature:
export declare class MarketplaceV3 implements UpdateableNetwork
Implements: UpdateableNetwork