Skip to main content

Creating a Marketplace Contract

In this section, we'll show how to:

  • Create the marketplace contract that will be used to store our listings
  • Configure the metadata such as the name, image, description, and fees of the Marketplace.

To create a Marketplace contract, head to the dashboard and connect your wallet.

Then click on the Deploy New Contract button.

Create a new contract

Select Marketplace from the list of contracts and click Deploy Now.

Before deploying it, you can configure the contract's Name, Symbol, and Description.

Once you're happy, let's deploy this Marketplace onto the Mumbai (MATIC) Test network.

Deploy marketplace onto mumbai

This will prompt you to accept a transaction in MetaMask (or whatever wallet you connected with), and deploy your smart contract onto the Mumbai Test network!

You might notice that the transaction requests to Deploy a Proxy.

If you want to learn more about proxy contracts, check out our documentation on How thirdweb prebuilt contracts work.

Now we're ready to upload some listings to our Marketplace contract.

Bonus Tip: SDK Deployments

You can do everything we just did in code using the SDK too!

const sdk = useSDK();

const contractAddress = await sdk.deployer.deployMarketplace({
name: "My Marketplace",
primary_sale_recipient: "your-address",
});
View in React SDK Documentation