IBC Relayers
By setting up the IBC relayer, you can create new connections and channels of IBC between Sunrise and other blockchains.
Setting up relayer with Go relayer (Deprecated)
You can see details here.
First, install Go
Setting up relayer with Rust relayer Hermes (Recommended)
You can see details here.
First, install Rust
Then, run the commands below:
Setup accounts
First, you need a wallet with enough funds on both chains. This tutorial assumes that you already have wallets created on the chains you want to relay on, and that these wallets have funds allocated to each of them.
Configuration file
The command hermes config auto provides a way to automatically generate a configuration file for chains in the chain-registry:
You must set each parameter yourself for the testnet. See the documentation for more details.
Add a new relay path
The following settings are not required for mainnets that already have an established IBC channel. Follow only if you are starting a new connection.
Create a connection
First, create a client on ibc-1
tracking the state of ibc-0
. It will be assigned 07-tendermint-0 as its identifier:
Create a connection
After creating clients on both chains, you have to establish a connection between them. Both chains will assign connection-0 as the identifier of their first connection:
If the command runs successfully, it should output the connection ID
.
Channel identifiers
Finally, after the connection has been established, you can now open a new channel on top of it. Both chains will assign channel-0 as the identifier of their first channel:
If the command runs successfully, it should output the channel IDs of both chains.
Add these to .hermes/config.toml
Once the configuration is complete, you can start the relayer with the following command.
Setting up daemon
Recommend setting SystemD to run automatically after reboot.
Monitoring daemon
Last updated