Information, not advice. This page describes the official BEP-20 specification and BNB Chain developer documentation. It is not financial, legal, investment, or tax advice, and it is not a recommendation to issue or purchase a token.
Safety: This site will never ask you to enter a seed phrase or private key. Use official toolchains on a machine you control, and start on a BNB Smart Chain test network.
BEP-20 is the official interface standard for token contracts on BNB Smart Chain (BSC). The BEP states that it is derived from Ethereum's ERC-20 and defines APIs to transfer tokens, approve spenders, and — in the design of the standard — facilitate transfer between BNB Beacon Chain and BNB Smart Chain. The BEP's status is “already implemented.” BNB Beacon Chain has since been retired (the BNB Chain Fusion migration of 2024), so the cross-chain parts below describe the standard's original design, not a route that still exists.
BNB Smart Chain is EVM-compatible. BNB Chain's BSC developer quick guide documents Ethereum-style toolchains, including Hardhat. That compatibility does not make BEP-20 identical to EIP-20 in every required method.
Required methods and events
The specification uses Solidity 0.5.16 or above and requires callers to handle a false return from methods that return bool. They must not assume false is never returned.
Methods specified by BEP-20:
| Method | Role in BEP-20 |
|---|---|
name() | Optional, as in EIP-20. |
symbol() | Required in BEP-20. The BEP notes this is optional in EIP-20, and that tokens which omitted it could never flow between BNB Beacon Chain and BNB Smart Chain. |
decimals() | Required, for the same cross-chain reason. |
totalSupply() | Total supply. When tokens could flow across both chains, the BEP said this number should be the total circulation across both. |
balanceOf(address) | Account balance. |
transfer / transferFrom | Move tokens; must emit Transfer. Zero-value transfers must be treated as normal transfers and must emit Transfer. |
approve / allowance | Spender allowance. approve overwrites the current allowance. |
Events are Transfer and Approval, with the same rules as ERC-20, including a Transfer from 0x0 when new tokens are created.
BEP-20 also repeats the ERC-20 approve guidance: clients should set an allowance to 0 before setting a new non-zero allowance for the same spender. The contract itself should not have to enforce that, for compatibility.
The BEP points to an official example implementation in the BNB Smart Chain genesis-contract repository: the BEP20Token.template. That template includes additional helpers such as getOwner(). Those helpers are part of that example, not additional required methods in the BEP-20 method list above. If you use the template, read it in full before you deploy it.
Implementation choices
Because BSC is EVM-compatible, many teams implement BEP-20 by starting from a current OpenZeppelin ERC-20 and making sure symbol() and decimals() are present (OpenZeppelin already implements both). That is a reasonable reading of the interface, but you must still:
- Confirm the compiler, optimizer, and network settings are for BSC (or a BSC testnet), not Ethereum mainnet.
- Treat supply policy as your contract's responsibility. BEP-20, like EIP-20, does not define how minting works.
- Remember that any
mint,pause, or blacklist function you add is a privilege, not part of the required standard.
This page does not paste the genesis template: it is a long Solidity 0.5.16 file. Use the official file from the BNB Chain repository if you are adopting that example, or a pinned OpenZeppelin release if you are writing a new contract.
Typical tooling and deploy flow
Official BSC developer documentation supports the usual Ethereum-style flow, pointed at BSC endpoints:
- Implement the required interface, with tests, using Hardhat or Foundry.
- Configure a BSC test network in the toolchain (RPC, chain id, and a test-only key). Official BNB Chain docs are the source for current testnet names and RPC endpoints; those values change and should be copied from the docs at the time you use them.
- Deploy, then verify source on the official BSC explorer tooling documented by BNB Chain, with the same constructor arguments, compiler version, and optimizer settings you used.
- Query
name,symbol,decimals,totalSupply, and any owner or mint function on the live testnet contract before considering a mainnet deploy.
This page does not include a mainnet deploy command or an RPC URL that might go stale. Use BNB Chain's developer documentation and the official Hardhat or Foundry deploy guides.
Scam red flags
- A “create BEP-20” website that asks for a seed phrase or a browser-wallet recovery step.
- A ticker that mimics a well-known BEP-20 asset at a different contract address than the issuer publishes.
- Claims that a token is “just BEP-20” when verified source includes minting, pausing, or transfer restrictions not described to holders.
- Explorer profile text or social-media verification treated as if it replaced source verification.
- Deployment instructions that skip the official test network.
See ERC-20 for the shared interface issues (approvals, honeypots) and Liquidity pools for removable liquidity.
Read next
Token issuance overview · ERC-20 · Tools
Sources
- github.com/bnb-chain/BEPs/blob/master/BEPs/BEP20.md
- github.com/bnb-chain/bsc-genesis-contract/blob/master/contracts/bep20_template/BEP20Token.template
- docs.bnbchain.org/bnb-smart-chain/developers/quick-guide/
- docs.bnbchain.org/bnb-smart-chain/introduction/
- eips.ethereum.org/EIPS/eip-20
- docs.openzeppelin.com/contracts/5.x/erc20
- hardhat.org/docs
- book.getfoundry.sh/