How to Deploy a Token on BNB in 5 Steps (With a No-Code Alternative)
In this guide, I’ll show you how to deploy a BEP-20 token on BNB Smart Chain using smart contracts with Solidity. You’ll also find a no-code option if you’d rather launch without writing code.
BNB Smart Chain is an EVM-compatible blockchain built for decentralized applications (dApps), with fast transactions and low costs. That makes it a strong choice for DeFi projects, tokens, and NFTs.
Deploy a Token on BNB with Solidity
Here is the step-by-step process to deploy the token with Solidity:
1. Set Up Your Development Environment
First, set up a development environment that supports Solidity. Recommended tools include:
• Remix: An online development environment with Solidity support, ideal for testing contracts without extra setup.
• Hardhat or Truffle: Frameworks you can install locally to compile, test, and deploy contracts on BNB Smart Chain. You can connect these tools to MetaMask to manage wallets.

Connect to the BNB network: Add the BNB Smart Chain network in MetaMask by configuring the specific BNB RPC. This allows MetaMask to interact directly with the BNB Smart Chain network.
2. Write the BEP-20 Contract
A BEP-20 token follows the same basic structure as an ERC-20. Here’s a simple example of a BEP-20 contract in Solidity:
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyToken is ERC20 {
constructor(uint256 initialSupply) ERC20("MyToken", "MTK") {
_mint(msg.sender, initialSupply);
}
}
In this example:
• The constructor sets the token name and symbol.
• The _mint function creates an initial token supply and assigns it to the contract creator.
Key BEP-20 Standard Functions:
• transfer: Lets token holders send tokens to another address.
• approve: Sets a token allowance that a third party can spend on behalf of the holder.
• transferFrom: Moves tokens from one account to another using a previously approved allowance.
3. Compile and Deploy the Contract
Once your contract is ready, you need to compile and deploy it. You can do this in Remix or with command-line tools like Hardhat or Truffle. Here’s an example using Hardhat:
npx hardhat run scripts/deploy.js --network bnb
To deploy on BNB Smart Chain, you’ll need BNB to cover gas fees, which are usually much lower than on Ethereum.
4. Optimize Gas Costs
Even though BNB Smart Chain fees are low, optimizing gas usage can cut costs even further. A few practical tips:
- Minimize storage operations: Storage in Solidity is expensive. Use memory variables instead of storage whenever you can.
- Batch transactions: When possible, combine multiple operations into a single transaction to reduce fees.
- Use external libraries: OpenZeppelin provides optimized, security-focused libraries like SafeMath to handle math operations and prevent overflow issues.
5. Testing and Security
Before deploying your token on the BNB Smart Chain mainnet, run thorough tests on a testnet such as BNB Testnet. Use frameworks like Hardhat to simulate deployment and write unit tests.
Common mistakes to avoid:
In practice, there are two mistakes you should avoid when deploying a token on BNB:
• Reentrancy attacks: These attacks happen when an external function calls back into the contract before the original execution is complete.
• Overflow and underflow: Newer Solidity versions (0.8.x) already handle these issues, but SafeMath is still recommended for older versions.
Once you have tested the contract and confirmed it works as expected, you can deploy it on the BNB Smart Chain mainnet.
No-Code Alternative for Deploying Your Token
If you want a fast no-code option, you can use Smithii’s Binance Token Creator to create your BEP-20 token without friction. It walks you through the process step by step, with no coding required.

- Set the token name: Enter the name you want for your token.
- Choose the symbol: Pick a symbol of up to 8 characters.
- Set the total supply: Define how many tokens will be available, usually between 10 million and 100 billion.
You may also be interested in launching a meme coin with Bundler Bot by Four Meme in just a few steps.
Advanced Options
Under advanced options, you’ll find a few useful features for your token:
• Airdrop Mode: Prevents the token from being tradable until you enable this feature.
• Anti-bot: Adds a cooldown between transactions to block bots.
• Anti-whale: Caps transaction size to keep large players from manipulating the market.
Creating a token on BNB Smart Chain with Smithii Tools costs around 0.01 BNB, plus gas fees.
If you want to watch the process I just walked through, here’s the video:
Contract Verification on BscScan
After deploying your token, you can verify it on BscScan to add social links and logos, which helps improve visibility. If you used Smithii Tools, verification is automatic. If you deployed the contract manually, follow the verification steps on BscScan.
What to Do After Creating Your Token
So users can trade your token, consider launching a Liquidity Pool on Uniswap. This enables trading on decentralized markets and adds liquidity, making the token easier to access.
You can also use the market maker bot for Binance to boost your token quickly and easily.
Conclusion
This guide shows you how to deploy a BEP-20 token on BNB Smart Chain using Solidity, plus a no-code alternative with Smithii Tools. Both options work; the no-code route simplifies the process by skipping complex technical steps, while manual deployment gives you full control over the contract.
Want to Outperform Your Competitors?
Join our newsletter and get weekly Blockchain news built for NFT creators.








