Learn how to run the Go relayer to create a transfer channel between any Cosmos chain and Secret Network.
Overview
The Go relayer is a relayer implementation written in Golang. It can create clients, connections, and channels, as well as relay packets and update and upgrade clients.
In order to use Secret Network's IBC Developer Toolkit, you need an IBC transfer channel established between Secret Network and your Cosmos chain.
In this section, you will learn:
How to get started with the Go relayer.
Basic Go relayer commands.
How to create a transfer channel between Secret Network testnet and Neutron testnet.
The configuration data is added to the config file, stored at $HOME/.relayer/config/config.yaml by default.
If this is the first time you run the relayer, first initialize the config with the following command:
rlyconfiginit
And check the config with:
rlyconfigshow
Now you are all set to add the chains and paths you want to relay on, add your keys and start relaying. You will set up two testnet chains: Neutron's pion-1 and Secret Network's pulsar-3.
Add chain configs
The rly chains add command fetches chain metadata from the chain registry and adds it to your config file:
rly chains add will check the liveliness of the available RPC endpoints for that chain in the chain registry. The command may fail if none of these RPC endpoints are available. In this case, you will want to manually add the chain config.
Create wallet keys
Create new keys for the relayer to use when signing and relaying transactions:
rlykeysaddsecretnetworktestnetsecret-test#this is the name of your keyrlykeysaddneutrontestnetneutron-test#this is the name of your key
Then, dit the relayer's key values in the config file to match the key-names chosen above. The configuration data is added to the config file, stored at $HOME/.relayer/config/config.yaml: