A simple private Binance Smart Chain setup example
This example is based on local network configuration described here
It contains genesis.json configuration, key.js for generating test account private keys and example counter-contract
Truffle is required to deploy the contract. You may also need to install the following:
npm install keythereum
Inside the counter-contract directory:
npm install @truffle/hdwallet-provider
To deploy the contract to local bsc node:
truffle migrate --network testnet
./build/bin/geth --datadir node1 --networkid 1000 console
./build/bin/geth --datadir node2 --port 30304 --nodiscover --networkid 1000 console --rpc --rpcport 8545 --ws --wsport 8546 --rpcaddr 127.0.0.1 --rpccorsdomain "*" --rpcapi "eth,net,web3,personal,miner"
Read this page for more instructions on creating accounts and starting miners