> For the complete documentation index, see [llms.txt](https://docs.escription.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.escription.io/cross-chain-validator/how-to-install-validator.md).

# How to install validator?

### Installation

To install golang v1.20, please visit the official golang website and follow the installation instructions for your specific operating system.

Also here are the shell commands to install Golang v1.20:

```shell
wget https://golang.org/dl/go1.20.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
```

These commands will download the binary installation package for Golang v1.20 from the official Golang website and extract it to the `/usr/local` directory. After that, the Golang executable file will be added to your environment variable `PATH` so that the `go` command can be globally accessed in the terminal.

### Getting the code

You can clone the code from the GitHub repository by running the following command in your terminal:

```bash
git clone git@github.com:ELAScription/cross.validator.git
```

This will clone the repository to your local machine.

### Building the application

To build the application, navigate to the cross.validator directory and run the following command in your terminal:

```bash
cd cross.validator
go mod tidy
go build -o validator app/validator/main.go
```

This will build the application and create a binary executable file called "validator".
