Set Up a Marketplace
Create a marketplace where NFTs can be listed for sale and purchased.
What You'll Build
A marketplace contract enables buying and selling NFTs at fixed prices. Sellers list their NFTs with a price, and buyers can purchase them directly. The marketplace handles:
- Listing NFTs for sale
- Processing purchases
- Transferring ownership
- Collecting payment
Prerequisites
- A wallet option ready — Keplr for mainnet, or use the test wallet to try it out
- An NFT collection to sell (or you'll buy from others)
- On testnet for practice, or mainnet for production
Step 1: Deploy the Marketplace
Ask Virtual Cofounder to create your marketplace:
Deploy a marketplace contract
You can also specify a name:
Deploy a marketplace called "Cosmic Cats Market"
Step 2: List an NFT for Sale
To sell an NFT on your marketplace:
List token 1 from my Cosmic Cats collection on the marketplace for 100 tokens
Virtual Cofounder will:
- Verify you own the NFT
- Set up the listing
- Ask for confirmation
Step 3: Buy an NFT
To purchase a listed NFT:
Buy token 1 from the Cosmic Cats collection on the marketplace
The marketplace will transfer the NFT to you and send payment to the seller.
Step 4: Manage Listings
View active listings:
Show me all listings on my marketplace
Cancel a listing:
Cancel my listing for token 1 from Cosmic Cats
Update the price:
Update the price of my token 1 listing to 150 tokens
Tips for Success
Test the Full Flow
On testnet, practice:
- Deploy a marketplace
- Deploy an NFT collection
- Mint an NFT
- List it for sale
- (From another wallet or ask Virtual Cofounder to simulate) Buy it
Consider Fees
Marketplaces can charge fees on sales. Ask Virtual Cofounder about fee configuration if you want to earn from trades.
Link Collections to Your Marketplace
For a better experience, you can associate your NFT collections with your marketplace so buyers know where to find your items.
Next Steps
Once you have a marketplace, you might want to:
- Run Auctions for special or rare items
- Launch an NFT Collection to sell