Binance Smart Chain node
Steps for getting BSC testnet node running
Step 1: Download Binance Smart Chain node
BSC node can be downloaded from GitHub or built from sources. For the purposes of simplifying the process, this guide will only cover downloading a pre-built binary. It can be downloaded from the terminal using
$ wget https://github.com/binance-chain/bsc/releases/download/v1.1.0-beta/geth_linux
$ mv geth_linux geth
$ chmod +x geth
Step 2: Downloading Binance Smart Chain configuration
Configuration can be obtained from GitHub as well. It can be downloaded and extracted from the terminal as well using
$ wget https://github.com/binance-chain/bsc/releases/download/v1.1.0-beta/testnet.zip
$ unzip testnet.zip
Step 3: Writing genesis state locally
In order to prepare the node for the start, initialize genesis state using
$ ./geth --datadir ./node init genesis.json
Step 4: Starting the node
You can start the node in your current terminal session using
./geth --config ./config.toml --datadir ./node --cache 18000 --txlookuplimit 0 --ws --ws.api eth
Node launched this way, will close as soon as you end your terminal session. In order to make this node persistent, you should use tmux
, screen
or your initialization system of choice (systemd
, openrc
, etc.)
Last updated
Was this helpful?