Skip to main content

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

💡Core versions and heights

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.

NetworkTypeCore Version at GenesisFork heightCore version after fork height
phoenix-1Mainnetv2.0.0890000v2.1.1
pisco-1Testnetv2.0.0-rc.08385002.1.0-beta.1
  1. Use git to retrieve Terra Core, and check out the main branch, 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 v and press <TAB>.


    _3
    git clone https://github.com/terra-money/core
    _3
    cd core
    _3
    git checkout [latest version]

  2. Build Terra Core. This will install the Terrad executable to your GOPATH environment variable.


    _1
    make install

  3. Verify that Terra Core is installed correctly.


    _1
    terrad version --long

    Example:


    _7
    name: terra
    _7
    server_name: terrad
    _7
    version: v2.0.0
    _7
    commit: ea682c41e7e71ba0b182c9e7f989855fb9595885
    _7
    build_tags: netgo,ledger
    _7
    go: go version go1.18.2 darwin/amd64
    _7
    # ...followed by a lot of dependenecies

💡tip

If the terrad: command not found error message is returned, confirm that the Go binary path is correctly configured by running the following command:


_1
export PATH=$PATH:$(go env GOPATH)/bin