Build Terra Core
Terra Core is the official Golang reference implementation of the Terra node software. Use this guide to install Terra Core and Terrad, the command-line interface and daemon that connects to Terra and enables you to interact with the Terra blockchain.
Get the Terra Core source code
If you are syncing a node from genesis you will need to use the appropriate core version for the block height of the respective chain you are syncing.
|Network||Type||Core Version at Genesis||Fork height||Core version after fork height|
gitto retrieve Terra Core, and check out the
mainbranch, which contains the latest stable release. You can find the latest tag on the tags page or via autocomplete in your terminal: type
git checkout vand press
<TAB>._3git clone https://github.com/terra-money/core_3cd core_3git checkout [latest version]
Build Terra Core. This will install the Terrad executable to your
GOPATHenvironment variable._1make install
Verify that Terra Core is installed correctly._1terrad version --long
Example:_7name: terra_7server_name: terrad_7version: v2.0.0_7commit: ea682c41e7e71ba0b182c9e7f989855fb9595885_7build_tags: netgo,ledger_7go: go version go1.18.2 darwin/amd64_7# ...followed by a lot of dependenecies
terrad: command not found error message is returned, confirm that the Go binary path is correctly configured by running the following command:
_1export PATH=$PATH:$(go env GOPATH)/bin