Book a free call

How to Create a BEP-721 Token on BNB Smart Chain

A BEP-721 token is an NFT on BNB Smart Chain, built with the same ERC-721 contract rules as Ethereum. This guide walks through creating, testing and listing one.

Hertiv engineering teamReviewed by a senior engineer
6 min read
How to Create a BEP-721 Token on BNB Smart Chain
On this page

Short answer

A BEP-721 token is a non-fungible token on BNB Smart Chain, created by deploying an ERC-721 contract on the chain. You build it with an audited contract library, test it on the BNB testnet, verify the source code on BscScan and mint the collection, paying gas fees in BNB.

What is a BEP-721 token?

A BEP-721 token is a non-fungible token, or NFT, on BNB Smart Chain. Each token has its own ID, its own owner and its own metadata, so no two tokens in a collection are interchangeable.

The name needs one clarification. BEP-721 is the name the BNB Chain community uses for ERC-721 contracts deployed on BNB Smart Chain. The standard itself is ERC-721, which is final on Ethereum, and BNB Smart Chain runs the same virtual machine, so the same contract code works on both chains.

That matters for builders. You do not need a special Binance version of anything. The same audited contract libraries, wallets and development tools that work on Ethereum work on BNB Smart Chain, and transfers are paid for in BNB. If you already know how to create a BEP-20 token, the workflow for a BEP-721 token will feel familiar, with a different contract and different rules.

BEP-721 vs BEP-20 vs ERC-721: what is different?

The three standards answer different questions. BEP-20 is for fungible tokens where every unit is identical, while BEP-721 and ERC-721 are for unique tokens. The only difference between BEP-721 and ERC-721 is the chain they run on.

StandardChainOne token isBest for
BEP-721BNB Smart ChainOne unique item with its own IDArt, tickets, game items, deeds
BEP-20BNB Smart ChainOne unit of many identicalCoins, payments, rewards
ERC-721EthereumOne unique item with its own IDThe same uses, on Ethereum
BEP-1155BNB Smart ChainUnique or identical, in batchesGame items, editions, mixed sets

BEP-1155 sits between them. It can hold both unique and identical tokens in one contract, which suits games that need single items and stackable items together. For a simple NFT collection, BEP-721 is the usual choice. The full comparison of the Ethereum original is in what ERC-721 is and how it works.

What do you need before you start?

You need four things before you write any code: a wallet with testnet BNB, a development environment, a decision on the collection, and a place to store the artwork and metadata.

  • Wallet. MetaMask or another EVM wallet, connected to the BNB testnet, with testnet BNB from the faucet for gas.
  • Tools. Remix in the browser for a first contract, or Hardhat for a larger project with tests.
  • Collection plan. Name, symbol, fixed supply or open minting, and who is allowed to mint.
  • Metadata storage. Artwork and JSON metadata files hosted off-chain, usually on IPFS, with links the contract can point to.

Decide the collection first. A fixed supply of 500 tickets needs different minting rules from an open collection that grows over time. The name and symbol go into the contract, so changing them later means deploying a new contract. Token development on Binance Smart Chain covers the same planning questions for fungible tokens.

How do you create the token, step by step?

Creating a BEP-721 token means writing a contract, deploying it to BNB Smart Chain and minting the first tokens. The steps below use Remix and the OpenZeppelin library, which most teams start with.

  1. Set up the wallet. Add the BNB testnet to MetaMask and get testnet BNB from the faucet so you can pay for test deployments.
  2. Write the contract. In Remix, create the contract file and import the OpenZeppelin ERC721 contract, then set the collection name and symbol.
  3. Add minting. Add a mint function that assigns the next token ID to an address, and a base URI that points to your metadata files.
  4. Compile and deploy to testnet. Compile in Remix, deploy through MetaMask, and confirm the contract address on the testnet explorer.
  5. Mint a test token. Mint one token to your own wallet and check that the owner, ID and metadata all show correctly.
  6. Deploy to mainnet and verify. Deploy the same code to mainnet, then verify the source code on BscScan so anyone can read it.

Testnet first is not optional. A contract deployed to mainnet cannot be changed, so every bug you find on testnet is one you do not pay for twice. Writing the contract follows the same pattern as creating a smart contract on BSC, with the ERC721 base contract instead of a generic one.

How do metadata and minting work?

Each BEP-721 token points to a metadata file through its token URI. The file is a small JSON document with the name, description, image link and attributes of that one token. The contract stores the link, not the image itself.

Two choices matter here. First, where the files live: IPFS is the usual choice because the link stays valid as long as the file is pinned, while a single server can disappear and break every image in the collection. Second, when the metadata is fixed: if you reveal the artwork after minting, set a placeholder URI first and update it once, then lock it.

Minting is the act of creating a token and giving it to an address. The contract checks that the caller is allowed to mint, assigns the next token ID and records the owner. A mint function that anyone can call will be found quickly, so restrict it to the owner or a sale contract.

How do you test, verify and list it?

Testing, verification and listing are three separate jobs, and each one catches a different kind of error. Testing checks the contract logic, verification proves the code on-chain matches the code you wrote, and listing makes the token visible to buyers.

  • Test on testnet. Mint, transfer and burn tokens, check that the wrong caller cannot mint, and watch the gas used.
  • Check the metadata. Open the token URI for several token IDs and confirm the image and attributes load.
  • Verify on BscScan. Submit the source code, compiler version and settings so the contract shows as verified.
  • List it. Add the collection to a marketplace that supports BNB Smart Chain NFTs so buyers can find it.

Verification on BscScan matters because buyers and marketplaces read the contract before they trust it. A verified contract shows the source code, the compiler version and the settings used, so anyone can check that the minting rules do what you claim.

Example (hypothetical): a 500-piece ticket collection

Example (hypothetical): a conference sells 500 entry tickets as BEP-721 tokens. Each ticket costs 0.05 BNB and the sale runs in two batches of 250.

The arithmetic is simple. Selling all 500 tickets at 0.05 BNB brings in 25 BNB. If the contract charges a 5 percent royalty on resales and 100 tickets resell at 0.08 BNB, resale volume is 8 BNB and the royalty is 0.4 BNB. If deployment and minting cost 0.3 BNB in gas, the project keeps 25 plus 0.4 minus 0.3, or 25.1 BNB before other costs.

The same numbers show why the mint price matters. If only 300 tickets sell, revenue is 15 BNB, and the 0.3 BNB of gas is a larger share of it. A fixed supply is a promise: unsold tokens are still tokens, and the team has to decide what happens to them.

What are the common mistakes?

The most common BEP-721 mistakes are leaving the mint function open, storing metadata on a single server, skipping testnet, and launching with an unverified contract.

  • Open mint function. If anyone can call mint, someone will mint the whole supply to themselves.
  • Metadata on one server. If the server goes down, every token image breaks at once.
  • No testnet run. Untested code on mainnet cannot be fixed without a new contract and a migration.
  • Unverified contract. Buyers and marketplaces trust verified code far more than an opaque address.
  • No supply cap. Unlimited minting removes the scarcity that makes a collection worth holding.
  • Ignoring royalties. Not every marketplace honours the same royalty rules, so check before you promise them.

Key takeaways

  • BEP-721 is the community name for ERC-721 contracts deployed on BNB Smart Chain, not a separate official standard
  • The same OpenZeppelin ERC721 contract, wallets and tools work on BNB Smart Chain because it runs the same virtual machine
  • Decide the collection, supply and minting rules before writing the contract, since mainnet code cannot be changed
  • Store metadata on IPFS and verify the source code on BscScan so buyers can check what they are buying
  • Test minting, transfers and the mint restriction on testnet before any mainnet deployment

Frequently asked questions

Is BEP-721 the same as ERC-721?

The rules are the same and the contract code is the same. BEP-721 is the name the BNB Chain community uses for an ERC-721 contract deployed on BNB Smart Chain, while ERC-721 is the name used on Ethereum. A token on one chain does not exist on the other.

How much does it cost to create a BEP-721 token?

You pay gas in BNB for deployment and each mint, and the cost changes with network demand and gas prices, so check the current gas price before deploying. Testing on the BNB testnet is free apart from testnet BNB from the faucet.

Can I create a BEP-721 token without coding?

Yes, for a simple collection. No-code minting tools and marketplaces let you upload artwork, set a name and supply, and deploy a ready-made contract. A custom contract is only needed when you want special minting rules or sale logic.

Where do BEP-721 tokens trade?

They trade on NFT marketplaces that support BNB Smart Chain, and they can be sent between any EVM wallet that holds BNB. Check that a marketplace lists BNB Smart Chain collections before you promise buyers a place to trade.

Do BEP-721 tokens support royalties?

Yes, through the EIP-2981 royalty standard, which many marketplaces read to pay the creator a share of resales. Royalty support varies by marketplace, so confirm the rules of each marketplace where you list the collection.

What happens if the metadata server goes down?

The token still exists on-chain with its owner and ID, but the image and attributes may not load. That is why most collections store metadata on IPFS with the file pinned, instead of on a single server that can disappear.

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

Planning an NFT collection on BNB Smart Chain? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Smart Contract 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 contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call