Skip to content

Chainbase - Upgrade node

Chainbase banner
Stop & delete old version chainbase-avs-setup directory on your server
Terminal window
cd $HOME/chainbase-avs-setup/holesky
./chainbase-avs.sh stop
banner
Terminal window
cd $HOME
rm -rf chainbase-avs-setup
Check your encrypted ECDSA and BLS keys
Terminal window
eigenlayer keys list
banner
  • You also can import existing ECDSA and BLS keys from YOUR PRIVATEKEY using the CLI
Terminal window
echo "password" | eigenlayer operator keys import --key-type ecdsa [keyname] [privatekey]
banner banner
Terminal window
echo "password" | eigenlayer operator keys import --key-type bls [keyname] [privatekey]
banner banner
Clone new Chainbase AVS repo
Terminal window
git clone https://github.com/chainbase-labs/chainbase-avs-setup && cd chainbase-avs-setup/holesky
Set up the environment file:
  • Copy and rename .env.example file —> .env
Terminal window
cp .env.example .env
  • Configure all fields in the .env file with your specific information:
Terminal window
nano /root/chainbase-avs-setup/holesky/.env

Example:

banner
NODE_ECDSA_KEY_FILE_PATH=/root/.eigenlayer/operator_keys/YOUR_KEY_NAME.ecdsa.key.json
NODE_BLS_KEY_FILE_PATH=/root/.eigenlayer/operator_keys/YOUR_KEY_NAME.bls.key.json
OPERATOR_ECDSA_KEY_PASSWORD=yourECDSAKeyPassword
OPERATOR_BLS_KEY_PASSWORD=yourBlsKeyPassword
OPERATOR_ADDRESS=yourECDSAKeyAddress (0x..........)
NODE_SOCKET=YOUR_IP_ADDRESS:8011
OPERATOR_NAME=yourOperatorName

** Set permissions to bash script** chainbase-avs.sh

Terminal window
chmod +x ./chainbase-avs.sh
Operating the Chainbase AVS

Run the following command to register as an operator:

Terminal window
./chainbase-avs.sh register
Run Node
Terminal window
./chainbase-avs.sh run
banner
Test Node
Terminal window
./chainbase-avs.sh test
banner

If you see the output All systems are working for your manuscript node in the command line output, it indicates that your node is running correctly.

Check Logs
Terminal window
cd ~/chainbase-avs-setup/holesky
docker compose logs -f
Terminal window
docker logs manuscript_node -f
banner
Monitor dashboard

You can visit http://YOUR_IP_ADDRESS:3010 on browser to view the dashboard to confirm the status of your node. If you are unable to access the page in your browser, please verify that port 3010 on your server is open and properly configured in firewall settings.

banner
Update Node socket

If your server’s public IP address is changed after you register as an operator, you need to update the node socket. Configure NODE_SOCKET in .env file, then run the following command:

Terminal window
./chainbase-avs.sh socket
Update Node version

Run the following command to update node version:

./chainbase-avs.sh stop
./chainbase-avs.sh update
./chainbase-avs.sh run