For Infrastructure Operators
Relayers
Set up Hermes Relayer
How to set up a Hermes Relayer
Prerequisites:
Linux
Make sure your system is updated and has the required dependencies installed:
sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y build-essential curl wget pkg-config libssl-dev libclang-dev git
Install Rust
First, ensure that Rust is installed on your system. This is necessary to compile Hermes:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env
Hermes
Clone the Hermes repository:
git clone https://github.com/informalsystems/ibc-rs cd ibc-rs
Build Hermes:
cargo build --release --bin hermes
Move the Hermes binary to your PATH:
sudo mv target/release/hermes /usr/local/bin/
Configuration
Create configuration directory:
mkdir -p ~/.hermes
Create configuration file:
nano ~/.hermes/config.toml
Here is an example of a configuration file for relaying between Stride and Osmosis. You will need to edit your configuration to fit your use case, including updating the addresses of your node RPC, GRPC, and websocket:
Create relayer keys. Don’t forget to backup the mnemonic that’s provided:
hermes keys add stride-1 --hd-path "m/44'/118'/0'/0/0"
hermes keys add osmosis-1 --hd-path "m/44'/118'/0'/0/0"
Start Hermes:
hermes start