Create your own token
A normal BEP-20/ERC-20 token with your own name and symbol — not USDT, not a stablecoin.
1. Choose name and supply
_nameMy Token
_symbolMYT
_supplyWhole1000000
2. Deploy directly (Trust Wallet / MetaMask)
Open this page in Trust Wallet → Discover, or any browser with MetaMask, then tap Deploy. It uses BNB Smart Chain (56).
3. Or deploy in Remix
- Open
https://remix.ethereum.org, createMyToken.sol, paste the source below. - Compiler
0.8.20or newer. - Environment: Injected Provider (MetaMask) or WalletConnect (Trust Wallet).
- Network: BNB Smart Chain (chain 56) for BEP-20, or Ethereum for ERC-20.
- Deploy with the three constructor values shown above.
- Confirm in your wallet. Deployment costs a small gas fee in BNB/ETH.
4. Source
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* MyToken — a simple BEP-20/ERC-20 token for your own use.
* - Fixed supply minted to the deployer at construction.
* - Owner can rename the token (setName / setSymbol) and transfer ownership.
* - No mint after deploy, no tax, no blacklist.
*/
contract MyToken {
string public name;
string public symbol;
uint8 public constant decimals = 18;
uint256 public totalSupply;
address public owner;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor(string memory _name, string memory _symbol, uint256 _supplyWhole) {
require(bytes(_name).length > 0 && bytes(_symbol).length > 0, "empty name");
require(_supplyWhole > 0, "zero supply");
owner = msg.sender;
name = _name;
symbol = _symbol;
_mint(msg.sender, _supplyWhole * 10 ** decimals);
}
modifier onlyOwner() {
require(msg.sender == owner, "not owner");
_;
}
function setName(string calldata _name) external onlyOwner {
require(bytes(_name).length > 0, "empty name");
name = _name;
}
function setSymbol(string calldata _symbol) external onlyOwner {
require(bytes(_symbol).length > 0, "empty symbol");
symbol = _symbol;
}
function transferOwnership(address _newOwner) external onlyOwner {
require(_newOwner != address(0), "zero address");
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
function transfer(address to, uint256 value) external returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
function approve(address spender, uint256 value) external returns (bool) {
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value) external returns (bool) {
uint256 allowed = allowance[from][msg.sender];
require(allowed >= value, "allowance too low");
if (allowed != type(uint256).max) {
allowance[from][msg.sender] = allowed - value;
}
_transfer(from, to, value);
return true;
}
function _transfer(address from, address to, uint256 value) internal {
require(to != address(0), "zero address");
require(balanceOf[from] >= value, "balance too low");
unchecked {
balanceOf[from] -= value;
balanceOf[to] += value;
}
emit Transfer(from, to, value);
}
function _mint(address to, uint256 value) internal {
totalSupply += value;
balanceOf[to] += value;
emit Transfer(address(0), to, value);
}
}
Good to know
- Rename later: this contract lets the owner call
setName/setSymbol. Wallets may cache metadata, so a redeploy is sometimes cleaner. - Send anywhere: you can send it to any BSC (0x…) address — the recipient does not have to add it first. They may need to import the contract address in their wallet to see it, and they can forward it.
- Gas: every transfer costs BNB gas, paid by the sender. Approvals and adding liquidity also cost gas.
- Price: a new token shows $0.00 in wallets until it has a real market. To get a price, add liquidity on PancakeSwap (pair with USDT/BUSD) — then price feeds may pick it up. There is no legitimate way to show a USD value without liquidity.
- Value: this is your own token, not USDT. It is only worth what someone will pay for it.