Hermes Relayer (IBC)
Overview
This guide provides a comprehensive walkthrough on configuring a relayer using Hermes, an IBC relayer that operates as a pivotal off-chain mechanism within the IBC architecture, tasked with facilitating the relay of IBC datagrams between two distinct blockchain chains. This process involves a meticulous procedure of monitoring the state of each chain, constructing transactions based on these observations, and subsequently submitting these transactions to the relevant chains within the network.
Prerequisites
Tutorial
Step 1: Clone the Hermes Repository
Step 2: Install and Set Up Hermes
Step 3: Update Chain Configs
Open
~/.hermes/config.toml
in a text editor.Please fill in the configurations for L1 and L2 like the example below, replacing placeholder values (
<...>
) with actual values. You can find information on the configurations of each in the offical hermes documentation.
Make sure to use your own RPC endpoints for enhanced security and reliability.
When you setup hermes, l2'smax_block_time
should be configured as 2 * create_empty_blocks_interval
in your ~/.minitia/config/config.toml
.
Step 4: Create Relayer Key
Ensure the relayer account has sufficient funds on both L1 and L2 chains.
Set Up Relayer Keys
Step 5: Transfer Channel
If you used minitia launch
command, you can skip this step.
Create a Channel with clients and connections. This process may take up to 5 minutes.
Step 6: Start Hermes
Last updated