Skip to content

About

A simple private Binance Smart Chain setup example

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

bsc-private-node-example

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

Start the nodes

Start bootstrap node

./build/bin/geth --datadir node1 --networkid 1000 console

Start second node

./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

About

A simple private Binance Smart Chain setup example

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages