Skip to main content

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

ConstructorModifiersDescription
(constructor)(network, address, storage, options, abi, chainId, contractWrapper)Constructs a new instance of the MarketplaceV3 class

Properties

PropertyModifiersTypeDescription
abiAbi
chainIdreadonlynumber
contractRolesstaticreadonly ["admin", "lister", "asset"]
directListingsreadonlyMarketplaceV3DirectListings<DirectListingsLogic>Direct listings
encoderContractEncoder<MarketplaceV3Contract>
englishAuctionsreadonlyMarketplaceV3EnglishAuctions<EnglishAuctionsLogic>Auctions
estimatorGasCostEstimator<MarketplaceV3Contract>
eventsContractEvents<MarketplaceV3Contract>
metadataContractMetadata<MarketplaceV3Contract, typeof MarketplaceContractSchema>
offersreadonlyMarketplaceV3Offers<OffersLogic>Offers
platformFeesContractPlatformFee<MarketplaceV3Contract>
rolesContractRoles<MarketplaceV3Contract, typeof MarketplaceV3.contractRoles[number]>

Methods

MethodModifiersDescription
getAddress()
onNetworkUpdated(network)

Signature:

export declare class MarketplaceV3 implements UpdateableNetwork

Implements: UpdateableNetwork