Get help / consulting from me:
☕ https://www.buymeacoffee.com/oskii
How to create a token on the binance smart chain bnb chain. This is a tutorial about how to deploy an ERC20 token to the binance chain network. You can deploy your own cryptocurrency to bsc binance smart chain using truffle by following this guide. By the end of this guide you will have created your own ERC20 token on the binance BNB chain network.
Put this at the top of your truffle config file:
const HDWalletProvider = require('@truffle/hdwallet-provider');
Commands / Installations:
Install VSCode
Install WSL
npm install truffle
truffle init
npm install @openzeppelin/contracts
npm install @truffle/hdwallet-provider
How to connect your metamask wallet to bsc binance smart chain:
https://umbria.network/connect/bsc
How to install WSL:
https://docs.microsoft.com/en-us/wind...
How to install VScode:
https://code.visualstudio.com/
How to download Metamask:
https://metamask.io/
Dependencies:
Install VSCode
Install WSL
npm install truffle
truffle init
npm install @openzeppelin/contracts
npm install @truffle/hdwallet-provider
Truffle Config:
bsc: {
provider: () =LESS_THAN_SYMBOL new HDWalletProvider(mnemonic, `wss://bsc-ws-node.nariox.org:443`),
network_id: 56,
gasPrice: 10000000000,
skipDryRun: true
},
Contract code:
const Migrations = artifacts.require("Migrations");
const MyToken = artifacts.require("MyToken")
module.exports = async function (deployer, accounts) {
deployer.deploy(Migrations);
console.log("Deploying My Token");
await deployer.deploy(MyToken);
console.log("Deployed My Token");
};