Deploy Full-node on Binance Smart Chain
Binance Smart Chain (BSC) is a blockchain that runs in parallel to the Binance Chain. Binance Smart Chain boasts smart contract functionality and compatibility with the Ethereum Virtual Machine (EVM). BSC and BNB both are ran side by side.
Following set of instructions are taken from Binance.org
BSC node Requirements
- A Virtual Private Server (VPS) running either Mac OS X or Linux
- 1 TB of free disk space, SSD
- 8 cores of CPU and 16 gigabytes of RAM
- An internet connection with upload/download speeds of at least 1 MB/s
Chaindata Snapshot
Please download the chain data snapshot and extract to your home folder to speed up.
## Extract the data
unzip geth.zip -d /NAME_OF_YOUR_HOME/node &
Run a BSC Full-node with Sync From Snapshot
Sync From Snapshot
Download the pre-build binaries from release page or follow the instructions below:
# Linuxwget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep geth_linux |cut -d\" -f4)# MacOSwget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep geth_mac |cut -d\" -f4)
Download the config files
Download genesis.json
and config.toml
by:
wget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep mainnet |cut -d\" -f4)unzip mainnet.zip
Download snapshot
Download latest snapshot from Download site Follow the guide to structure the files.
Start a full node
geth --config ./config.toml --datadir ./node --diffsync --cache 8000 --rpc.allow-unprotected-txs --txlookuplimit 0
You can monitor the log from /node/bsc.log
by default
If you would like to run a Binance smart chain validator then follow this guide on how to deploy a BSC validator.
BSC JSON-RPC methods
BSC chain uses the same rpc methods as Ethereum rpc calls. If you would like to use RPC calls on BSC node, the following page will provide complete list of Eth RPC calls with examples.