Search Docs...

Search Docs...

For Infrastructure Operators

Relayers

Set up Go Relayer

How to set up Go 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 jq git

Install Go

First remove any existing old Go installation:

sudo rm -rf /usr/local/go

Install the latest version of Go using this helpful script and move to the /usr folder:



Update environment variables to include go:

cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/.go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/.go/bin:$HOME/go/bin
EOF
source $HOME/.profile

Check if go is correctly installed:

go version

This should return something like "go version go1.18.1 linux/amd64"

Install Go Relayer

Clone the Go Relayer repository:



Build the relayer binary:

make install

Verify the installation:

rly version

This should return the version of the Go Relayer installed.

Configuration

Initialize the Relayer:

rly config init

Add Chains to the Configuration:

rly config init

Stride Labs

Last updated:

9/17/24

Stride Labs

Last updated:

9/17/24