Terrad is the command-line interface and daemon that connects to Terra and enables you to interact with the Terra blockchain. Terra Core is the official Golang reference implementation of the Terra node software.
This guide is for developers who want to install Terrad and interact with the Terra Core without running a full node. If you want to run a full node or join a network, use the documentation on how to run a full Terra node.
- Golang v1.18 linux/amd64
- Ensure your
GOBINenvironment variables are set up correctly.
- Linux users: install build-essential.
If you are using a Mac, follow the Terrad Mac installation guide.
The easiest way to install Terrad and Terra Core is by downloading a pre-built binary for your operating system. You can find the latest binaries on the releases page. If you have a Mac, follow the Mac installation instructions.
1. Get the Terra Core source code
git to retrieve Terra Core and check out the
main branch, which contains the latest stable release.
_3git clone https://github.com/terra-money/core_3cd core_3git checkout [latest version]
2. Build Terra Core from source
Build Terra Core, and install the Terrad executable to your
GOPATH environment variable.
3. Verify your Terra Core installation
Verify that Terra Core is installed correctly.
_1terrad version --long
If Terra Core is installed correctly, you will get the following output:
_6name: terra_6server_name: terrad_6version: v2.0.0_6commit: ea682c41e7e71ba0b182c9e7f989855fb9595885_6build_tags: netgo,ledger_6go: go version go1.18.2 darwin/amd64
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
With Terrad installed, you can set up a local testing environment using LocalTerra.
For more information on Terrad commands and usage, visit Using Terrad.