How to deploy a custom Token on Bidao Smart Chain

Bidao Smart Chain
2 min readApr 28, 2023
  1. Go to https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js

2. Create a new file and call it MyToken.sol

3. Paste the contract code below:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.0.0/contracts/token/ERC20/ERC20.sol";

contract MyToken is ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {
// Mint 100 tokens to msg.sender
// Similar to how
// 1 dollar = 100 cents
// 1 token = 1 * (10 ** decimals)
_mint(msg.sender, 100 * 10 ** uint(decimals()));
}
}

4. Go to section “Deploy and run transactions” on the very left menu. Then as environment select “Injected Provider — Metamask”. Please also make sure that your Metamask wallet is connected to the Bidao Smart Chain network.

5. Set a name and symbol for your Token. Then click on the button “transact”.

6. Confirm the transaction in your Metamask wallet. After that the Token will be deployed and you can see and interact with the contract in Remix here. You can click on the copy symbol to copy the Token address.

7. Go to https://ascend.bidaochain.com/ and search for your copied Token address. You can see that your Token has been successfully deployed on the Bidao Smart Chain.

8. Finally you can import the Token to your metamask by adding the Token address to your metamask wallet.

Now you can have your own Token on the Bidao Smart Chain 😃 Of course you can also deploy much more complex contracts to the Bidao Smart Chain.

--

--