Interact with the Frontend for Your NFT Marketplace on Rootstock
In Part 1: Deploy a Marketplace Contract of this two parts guide, we learnt how to set up an account on the Thirdweb marketplace and deployed a smart contract on the Thirdweb marketplace and added the Direct Listing extension. In this section, we will build the core user-facing features of your NFT marketplace using the Thirdweb SDK, we will implement key marketplace functionalities such as listing NFTs for sale, purchasing listed assets, and canceling active offers.
You’ll also learn how to customize essential parameters like price, accepted currency, and listing duration, giving you full flexibility and control over your trading experience.
By the end of this guide, your NFT marketplace on Rootstock will be fully operational and ready for real user interaction.
Ensure to complete Part 1: Deploy an NFT Marketplace Contract of the guide before continuing on this section. To access the frontend application, open http://localhost:3000 in your browser.
Key Functionalities
- Listing NFTs via Direct Listing Use the directListing function from the Thirdweb SDK to put NFTs up for sale on your marketplace with custom parameters.
- Fetching Active Listings or Offers Retrieve and display all active listings in your frontend so users can easily explore available assets.
- Canceling a Listing Allow sellers to remove their NFTs from the marketplace if they change their mind or want to modify the listing.
- Buying listed offers Integrate the purchasing flow using Thirdweb's tools to allow users to seamlessly buy NFTs with the configured currency.
The Thirdweb SDK simplifies the integration of these core operations and supports additional extensions for enhanced user experiences, making it easier to develop and focus on the use case rather than the processes.
You can explore many more advanced features and best practices in the Thirdweb documentation, should you need to expand or tailor your marketplace further.
Using the NFT Marketplace
You can do the following on the Thirdweb NFT Marketplace:
- Sell an NFT: Navigate to the Sell tab, fill out the form, and submit to list an NFT on the marketplace.
- Buy an NFT: Click on the NFT you are interested in, connect your wallet, click on Buy, sign the transaction and enjoy your NFT.
Launching Your NFT Collection
To launch your NFT collection, do the following:
- Navigate to the Marketplace Contract
In part 1 of this guide, we created a marketplace contract, now we will launch our NFT collection to allow buyers to purchase the NFTs. To do this open the Marketplace project and select Tokens on the left panel to create NFT Collection.

- Add the Token Collection info

- Upload NFT in Collection

- Configure Sales and Fees

- Preview and Launch the NFT Collection

- Approve Transaction Approve the transaction in your Metamask Wallet

- View Token Collection
Click on token to view metadata (ID, Contract address, etc).
