Skip to main content

Verify Node on BNB Smart Chain

Verify Node Functions

  • Stores the full blockchain history on disk and can answer the data request from the network.
  • Receives and validates the new blocks and transactions.
  • Verifies the states of every account.
  • Verifies the states of a Fast Node.

Steps to Run a Verify Node

  1. Download the pre-build binaries from release page or follow the instructions below:
# Linux
wget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep geth_linux |cut -d\" -f4)
mv geth_linux geth
chmod -v u+x geth

# MacOS
wget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep geth_mac |cut -d\" -f4)
mv geth_mac geth
chmod -v u+x geth
  1. 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
  1. Download snapshot

Download latest chaindata snapshot from here. Follow the guide to structure your files.

note

Your --datadir flag should point to the extracted chaindata folder path

  1. Start verify node
./geth --config ./config.toml --datadir ./node --cache 8000 --rpc.allow-unprotected-txs --history.transactions 0 --enabletrustprotocol --disablesnapprotocol --disablediffprotocol
note

Make sure you use the version of geth you downloaded with wget above, and not your local installation of geth, which might be the wrong version.