Berachain
Detailed Installation and Configuration
1. Install Go
Berachain is built using Go, so you'll need to install it first:
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile2. Install Berachain
git clone https://github.com/berachain/berachain
cd berachain
make install3. Initialize the node
berad init <your-moniker> --chain-id berachain-testnet4. Configure genesis and TOML files
cd ~/.berad/config
curl -o genesis.json https://raw.githubusercontent.com/berachain/node-config/main/networks/closed-testnet/archive/config/genesis.json
curl -o app.toml https://raw.githubusercontent.com/berachain/node-config/main/networks/closed-testnet/archive/config/app.toml
curl -o config.toml https://raw.githubusercontent.com/berachain/node-config/main/networks/closed-testnet/archive/config/config.toml5. Edit config.toml
Open ~/.berad/config/config.toml and make the following changes:
6. Edit app.toml
Open ~/.berad/config/app.toml and make the following changes:
7. Create a systemd service file
Create a file named /etc/systemd/system/berad.service:
8. Start the node
9. Monitor logs
Additional Scripts
Validator Creation Script
Here's a script to create a validator (you'll need to have tokens in your account):
Node Status Check Script
Here's a script to check the status of your node:
Last updated