⚙️Sidecar (✔️Oracle)

The validator sidecar service allows validators to vote on oracle data during the CometBFT consensus process

Install the sidecar

# create the necessary directories
mkdir -p $HOME/.zrchain/sidecar/bin
mkdir -p $HOME/.zrchain/sidecar/keys

Install the binary file

wget -O $HOME/.zrchain/sidecar/bin/validator_sidecar https://github.com/Zenrock-Foundation/zrchain/releases/download/v6.3.3/validator_sidecar
chmod +x $HOME/.zrchain/sidecar/bin/validator_sidecar

Copy zenrock-validators

cd $HOME
git clone https://github.com/zenrocklabs/zenrock-validators

Set a password for sidecar wallets

read -p "Enter password for the keys: " key_pass

Sử dụng lệnh read trong zsh

echo -n "Enter password for the keys: "
read key_pass

Build BLS binary

Create a BLS key

Build ecdsa binary

Create a ecdsa key

IMPORTANT - to continue, you need to top up the generated ecdsa key with Ethereum Holesky test tokens You can use the faucet - https://stakely.io/faucet/ethereum-holesky-testnet-eth

IMPORTANT - to continue you need to register on https://app.infura.io and get the following endpoints:

  • mainnet eth: https://xxx

  • holesky eth: https://xxx

  • holesky eth: wss://xxx

Set variables

Create initial configuration files

Create a service file

Don't forget to save the directory $HOME/.zrchain/sidecar/

Last updated

Was this helpful?