1. Prerequisites

2. Install Go

BounceBit node uses Go, so you need to install it first:

wget <https://golang.org/dl/go1.20.3.linux-amd64.tar.gz>
sudo tar -xvf go1.20.3.linux-amd64.tar.gz
sudo mv go /usr/local

Then add Go to your PATH:

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

3. Clone BounceBit Validator Node Repository

Get the latest version of the BounceBit node code from the official GitHub repository:

git clone <https://github.com/BounceBit-Labs/bouncebit-node.git>
cd bouncebit-node

4. Compile the Node

Build the node by running the following commands:

make install

5. Configure the Node

After installing, configure the node:

bouncebitd init <your-node-name> --chain-id bouncebit-mainnet

Download the correct genesis file to join the network:

wget <https://bouncebit.io/genesis.json> -O ~/.bouncebitd/config/genesis.json

Update the config.toml to set persistent peers and seed nodes. This file is located at ~/.bouncebitd/config/config.toml.