Book a free call

How to Create an NFT Marketplace on Avalanche

An NFT marketplace on Avalanche is a storefront where creators list tokens and buyers trade them on the C-Chain. Here is the full build, from contract to launch.

Hertiv engineering teamReviewed by a senior engineer
8 min read
How to Create an NFT Marketplace on Avalanche
On this page

Short answer

Creating an NFT marketplace on Avalanche means building a storefront on the Avalanche C-Chain where creators mint ERC-721 or ERC-1155 tokens, list them for sale, and buyers pay with AVAX. You need a marketplace smart contract, a way to store token metadata, a wallet connection, and a front end that lists items and handles sales.

What is an NFT marketplace on Avalanche?

An NFT marketplace on Avalanche is a website and a set of smart contracts that let people buy and sell non-fungible tokens on the Avalanche C-Chain. A creator mints a token that stands for a piece of art, a game item or a collectible, lists it at a price, and a buyer pays with AVAX. The contract moves the token to the buyer and the payment to the seller, minus any fees the marketplace takes.

Avalanche is a good fit for marketplaces because the C-Chain is compatible with Ethereum tooling, so contracts written for Ethereum work there with small changes. Fees are usually a fraction of a dollar and transactions confirm in a few seconds, which makes low-priced items worth listing. That matters for a marketplace, because high fees kill small trades.

The marketplace itself is two things at once: the contracts that hold the rules, and the website that shows the items. The contracts handle listing, buying, royalties and escrow. The website reads the chain, shows images and prices, and sends transactions when a user clicks buy. For a general guide to the same build on any chain, see how to develop an NFT marketplace.

Why build on Avalanche?

Teams choose Avalanche for three reasons: low fees, fast confirmation, and Ethereum-compatible tooling. A mint or a sale that costs several dollars on Ethereum can cost a few cents on the C-Chain, so creators can list cheaper items and buyers can trade more often. Transactions usually confirm in under two seconds, which makes the marketplace feel instant.

The second reason is tooling. The C-Chain runs the Ethereum Virtual Machine, so the same contracts, wallets and libraries you already know work there. MetaMask and other common wallets connect to Avalanche by adding the network, and Hardhat, Foundry and Remix all support it. That keeps the build short and the team small.

The third reason is the ecosystem. Avalanche already hosts marketplaces, games and NFT projects, so a new marketplace can reach users who already hold AVAX and already use wallets. For the wider uses of tokens on the chain, see NFT use cases.

What do you need before you start?

Before writing code, decide what the marketplace will sell, which token standards it will support, and how it will earn money. A marketplace for art needs different filters and pages than one for game items, and the choice shapes the contract. The table below lists the parts every marketplace needs.

PartWhat it doesCommon choice
Marketplace contractLists items, takes payment, pays royaltiesERC-721 or ERC-1155 based
Token contractMints the NFTs creators listERC-721 for unique items
Metadata storageHolds images and item detailsIPFS or a cloud store
Wallet connectionLets buyers sign transactionsMetaMask and WalletConnect
Front endShows listings and handles buyingA web app with a chain indexer
IndexerReads chain events into a fast databaseAn event listener plus database

Metadata storage deserves care. The token on the chain points to a file that holds the image and the item's details, and that file must stay available. Storing it on IPFS is the usual choice, because the file is addressed by its content rather than by a server that can disappear. A marketplace that stores images on its own server has a single point of failure.

You also need a plan for royalties. The marketplace contract should send a share of each resale to the creator, and the rate should be fixed in the contract so sellers and buyers both know it. A royalty of 5% is a common starting point, and the rate should be visible on every listing page.

How to create it, step by step

Building an NFT marketplace on Avalanche takes about two to four months for a first version, in seven steps. The contract is the smallest part; the listing pages, the indexer and the testing take most of the time.

  1. Define the market. Choose the item type, the token standard and the fee model, and write down what a listing, a sale and a resale must do.
  2. Write the marketplace contract. Build the contract that lists items, holds payment in escrow until the sale completes, and splits the payment between seller, creator and marketplace.
  3. Write the token contract. Use a standard ERC-721 or ERC-1155 contract, add a mint function for creators, and test minting on the Fuji testnet.
  4. Build the indexer. Listen for mint, list and sale events and store them in a database, so the front end can show listings without scanning the chain on every page load.
  5. Build the front end. Add wallet connection, a browse page with filters, an item page with price and history, and a create page for minting and listing.
  6. Audit and test. Get a security audit of the contracts, test failed payments, cancelled listings and royalty splits, and run the full flow on the Fuji testnet with real wallets.
  7. Launch on mainnet. Deploy the contracts to the C-Chain, list a small set of items first, and open the marketplace to more creators once sales work smoothly.

The escrow step is the part teams get wrong most often. The contract should hold the buyer's AVAX until the token has moved, so a seller cannot take the payment without giving up the item. A contract that pays the seller first and moves the token second has a hole a bad actor can use. For the deployment steps themselves, see how to develop and deploy an Avalanche smart contract.

Testing should cover the cases that break in production: a buyer with too little AVAX, a listing cancelled after a bid, a royalty split that does not add up, and a metadata file that fails to load. Each of these needs a clear error message, because a marketplace that fails silently loses buyers fast.

What does it cost?

The cost of an NFT marketplace on Avalanche depends on the team, the features and the audit. The contract and the front end are the fixed costs, while the audit and the launch are the parts that vary most. The table below shows indicative ranges for a first version.

ItemIndicative rangeNotes
Marketplace and token contracts$20,000 - $50,000Standard contracts, tested on Fuji
Front end and indexer$30,000 - $70,000Browse, item, create and wallet pages
Security audit$15,000 - $40,000One audit of the contracts
Design and launch$10,000 - $30,000Brand, pages and first listings
Chain fees for testingUnder $500Fuji testnet tokens are free; mainnet fees are cents

Running costs are modest. The indexer needs a server and a database, the images need storage, and the team needs time to answer creator questions and fix bugs. Budget for a few thousand dollars a month in hosting and support for a small marketplace, and more once traffic grows.

Income comes from the marketplace fee on each sale and, sometimes, from a listing fee. A fee of 2.5% on sales is a common starting point. The fee has to be low enough that sellers do not move to a cheaper marketplace, and high enough to pay for hosting, support and further work.

Example (hypothetical): a first-quarter launch

Example (hypothetical): a small team launches a marketplace for digital art on Avalanche. In the first quarter, creators list 2,000 items and buyers complete 2,000 sales at an average price of $45 each. That is $90,000 in sales volume, because 2,000 times $45 is $90,000.

The marketplace takes a 2.5% fee on each sale, which is $2,250 in total, because 2.5% of $90,000 is $2,250. Creators earn a 5% royalty on resales, and 400 of the items resell at an average of $50 each, which is $20,000 in resale volume and $1,000 in royalties, because 5% of $20,000 is $1,000.

Chain fees stay small. Minting 2,000 tokens at about $0.05 each costs $100, and 2,000 sales at about $0.03 each cost $60. The team spent $95,000 building the marketplace, so the $2,250 in first-quarter fees does not pay it back yet. The numbers show the pattern: fees are small per sale, so a marketplace needs volume before it pays for itself.

What are the common mistakes?

The most common mistakes are skipping the audit, storing metadata on a server that can disappear, and setting fees that push sellers away.

  • Skipping the security audit. A marketplace contract holds real money. An audit is not optional, and a contract that has not been audited should not hold user funds.
  • Storing images on one server. If the server goes down, every listing loses its image. Use content-addressed storage such as IPFS for metadata and images.
  • Paying the seller before moving the token. The contract should hold payment in escrow until the token has moved, or a bad actor can take the money and keep the item.
  • Setting the fee too high. A large fee drives sellers to marketplaces that charge less. Start low and raise it only when the marketplace has real traffic.
  • No plan for fake items. Copycat listings appear fast. The marketplace needs verified creator badges and a way to report fakes.
  • Ignoring the royalty split. Royalties must be tested with real numbers, because a split that does not add up will fail on mainnet and leave money stuck in the contract.

Key takeaways

  • An NFT marketplace on Avalanche is a C-Chain storefront where creators mint tokens and buyers pay with AVAX
  • The C-Chain fits marketplaces because fees are a few cents and transactions confirm in seconds
  • Every marketplace needs a marketplace contract, a token contract, metadata storage, wallets and an indexer
  • The contract should hold payment in escrow until the token moves, and pay royalties on each resale
  • Fees are small per sale, so a marketplace needs real volume before it pays for itself

Frequently asked questions

What is an NFT marketplace on Avalanche?

An NFT marketplace on Avalanche is a website and a set of smart contracts on the Avalanche C-Chain where creators mint and list non-fungible tokens and buyers pay with AVAX. The contract moves the token to the buyer and the payment to the seller, minus the marketplace fee and any creator royalty.

Why build an NFT marketplace on Avalanche instead of Ethereum?

Avalanche fees are usually a few cents rather than several dollars, and transactions confirm in seconds, which makes low-priced items worth listing. The C-Chain is also compatible with Ethereum tooling, so contracts, wallets and libraries built for Ethereum work there with small changes.

Which token standard should an Avalanche marketplace use?

Use ERC-721 for unique items such as art and collectibles, and ERC-1155 when you need many copies of the same item, such as game items or editioned prints. Both standards work on the C-Chain, and most wallets already support them, so buyers need no new software.

How do royalties work on an Avalanche marketplace?

The marketplace contract sends a share of each sale to the creator, usually around 5%, and the rate is fixed in the contract so buyers and sellers can see it. The royalty is paid on resales as well as first sales, which is how creators keep earning after the first buyer.

Where should NFT metadata be stored?

Store metadata and images on content-addressed storage such as IPFS, so the file is found by its content rather than by a server address. If the marketplace stores images on its own server and that server goes down, every listing loses its image.

How much does it cost to build an NFT marketplace on Avalanche?

A first version usually costs $75,000 to $190,000, including the contracts, the front end, the indexer, a security audit and the launch. Chain fees are tiny by comparison, at a few cents per mint or sale. Running costs are a few thousand dollars a month for hosting and support.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building an NFT marketplace on Avalanche? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Blockchain Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call