No sections match this search. Try another word or clear the field.
Prepare the server
This guide is for a full node on phoenix-1. Use a dedicated, unprivileged Linux account. The examples assume Debian or Ubuntu, Bash, the default home directory ~/.terra, and systemd.
- Hardware baseline. Terra Docs lists 4 CPU cores plus 4 threads, 32 GB RAM, a 2 TB SSD with 2,000 MB/s read/write, and 300 Mbps bandwidth. Allow extra disk space for staging a snapshot, chain growth, and backups.
- Connectivity. Keep the clock synchronized. On a public full node, allow the P2P port you configure, typically TCP
26656. Bind RPC26657, REST1317, and gRPC9090to localhost or a private interface unless you operate them as public services. - Validator operations. Use the recovery procedure for your signer and keep its key and latest signing state in protected backups. The setup below starts with a fresh non-signing full node.
Terra Docs · System configuration Terra Docs · Validator operation
Install Terra Core
Choose a stable version from the Phoenix Directive release list. Check the network upgrade notes for the height you are syncing from.
Install the tools used by both installation paths. Run commands that use sudo from your administrator account. Use the service account for the remaining commands so that $HOME points to the node owner’s home directory.
sudo apt-get update
sudo apt-get install -y build-essential ca-certificates curl git jq lz4
Use the published binary
In the selected release’s Assets, download the Linux archive for your CPU (x86_64 or arm64). Copy that file’s SHA-256 from the release’s checksum.txt or its published GitHub asset digest. In the download directory, replace both placeholders and run the block. The binary is installed in ~/.local/bin. Add the first line to your shell profile for future sessions.
export PATH="$HOME/.local/bin:$PATH"
(
set -e
archive='PASTE_DOWNLOADED_LINUX_ARCHIVE_FILENAME'
sha256='PASTE_SHA256_FOR_THIS_ARCHIVE'
[[ $sha256 =~ ^[[:xdigit:]]{64}$ ]]
printf '%s %s\n' "$sha256" "$archive" | sha256sum -c -
work_dir=$(mktemp -d)
trap 'rm -rf -- "$work_dir"' EXIT
tar -xzf "$archive" -C "$work_dir" terrad
install -D -m 0755 "$work_dir/terrad" "$HOME/.local/bin/terrad"
terrad version --long
)
Build from source
Use the Go version required by the selected tag’s go.mod. Replace the tag placeholder and run as the service user, from a directory without an existing terra-core checkout.
export PATH="$HOME/.local/bin:$PATH"
mkdir -p "$HOME/.local/bin"
release_tag='PASTE_SELECTED_RELEASE_TAG'
go version &&
git clone --depth 1 --branch "$release_tag" https://github.com/phoenix-directive/core.git terra-core &&
cd terra-core &&
GOBIN="$HOME/.local/bin" make install &&
terrad version --long
Genesis, seeds and peers
Initialize and verify genesis
Replace YOUR_NODE_NAME and use a fresh node directory. Download the official Phoenix-1 genesis (about 747 MB). The check reads the JSON stream and confirms both the chain ID and the original genesis timestamp before replacing the generated file. The Polkachu mirror returned a JSON with the same chain ID and a different genesis timestamp during the audit.
export TERRA_HOME="$HOME/.terra"
(
set -e
if [ -e "$TERRA_HOME/config/genesis.json" ]; then
printf '%s\n' 'Use a fresh node home for this example.' >&2
exit 1
fi
genesis=$(mktemp)
trap 'rm -f -- "$genesis"' EXIT
curl --retry 2 -fL https://phoenix-genesis.s3.us-west-1.amazonaws.com/genesis.json -o "$genesis"
jq --stream -ne '
reduce (inputs | select(length == 2 and (.[0] == ["chain_id"] or .[0] == ["genesis_time"])))
as $entry ({}; .[$entry[0][0]] = $entry[1])
| .chain_id == "phoenix-1" and .genesis_time == "2022-05-28T06:00:00Z"
' "$genesis"
terrad init "YOUR_NODE_NAME" --chain-id phoenix-1 --home "$TERRA_HOME"
install -m 0644 "$genesis" "$TERRA_HOME/config/genesis.json"
)
Seed node
A seed helps discover peers. Start with the current Terra seed from Polkachu and edit the existing [p2p] section of config/config.toml. Replace the entire placeholder with the provider’s nodeID@host:port value.
[p2p]
seeds = "SEED_NODE_ID@SEED_HOST:PORT"
persistent_peers = ""
Live peers
If discovery stalls, choose reachable nodes from the current peer list and add them to persistent_peers as a comma-separated list. For a validator, use trusted sentries and keep the signer’s network private.
Address book
To bootstrap discovery from a recent address book, download and check the file below. If the service already exists, stop it before changing the file. The command makes a timestamp-independent backup when an address book exists.
(
set -e
: "${TERRA_HOME:?Set TERRA_HOME first}"
target="$TERRA_HOME/config/addrbook.json"
book=$(mktemp "$TERRA_HOME/config/.addrbook.XXXXXX")
trap 'rm -f -- "$book"' EXIT
curl --retry 2 -fL https://snapshots.polkachu.com/addrbook/terra/addrbook.json -o "$book"
jq -e '.addrs | type == "array" and length > 0' "$book"
if [ -f "$target" ]; then
backup=$(mktemp "$target.backup.XXXXXX")
cp -p "$target" "$backup"
fi
chmod 0644 "$book"
mv "$book" "$target"
)
Cosmovisor and systemd
Install Cosmovisor v1.7.3 as the service user. Choose one installation method, then initialize the Cosmovisor directory.
Use the published binary
Download the Linux archive for your CPU and its checksum list from the release. Replace both placeholders and run this block from the download directory.
(
set -e
archive='PASTE_COSMOVISOR_LINUX_ARCHIVE_FILENAME'
sha256='PASTE_SHA256_FOR_THIS_ARCHIVE'
[[ $sha256 =~ ^[[:xdigit:]]{64}$ ]]
printf '%s %s\n' "$sha256" "$archive" | sha256sum -c -
work_dir=$(mktemp -d)
trap 'rm -rf -- "$work_dir"' EXIT
tar -xzf "$archive" -C "$work_dir" cosmovisor
install -D -m 0755 "$work_dir/cosmovisor" "$HOME/.local/bin/cosmovisor"
)
Build using Go
GOBIN="$HOME/.local/bin" go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.7.3
Initialize Cosmovisor
Use the Terra binary that matches the height you are starting from. Initialize Cosmovisor as the same user that initialized the node home.
export PATH="$HOME/.local/bin:$PATH"
export DAEMON_HOME="${TERRA_HOME:-$HOME/.terra}"
export DAEMON_NAME=terrad
cosmovisor init "$(command -v terrad)"
As an administrator, save the unit below as /etc/systemd/system/terra.service. Replace the sample account and absolute paths with those for your server. Check the unit with sudo systemd-analyze verify /etc/systemd/system/terra.service. Keep the service stopped until your sync data and any required upgrade binary are staged.
[Unit]
Description=Terra Phoenix-1 full node
Wants=network-online.target
After=network-online.target
[Service]
User=terra
WorkingDirectory=/home/terra
Environment=DAEMON_NAME=terrad
Environment=DAEMON_HOME=/home/terra/.terra
Environment=DAEMON_ALLOW_DOWNLOAD_BINARIES=false
Environment=DAEMON_RESTART_AFTER_UPGRADE=true
Environment=UNSAFE_SKIP_BACKUP=false
ExecStart=/home/terra/.local/bin/cosmovisor run start --home /home/terra/.terra
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
Snapshot restore
A recent snapshot is the simplest starting point for a new full node. From Polkachu’s snapshot page, copy the current HTTPS file URL and check its height, timestamp, and size. These snapshots use pruning and disabled transaction indexing at the source, so historical state and transaction search may be limited. Use a source that explicitly provides the history you need for archive workloads.
- If the service is already running, stop it with
sudo systemctl stop terra.service. Leave enough free space for the compressed archive, the extracted data, and any previous database you retain. - Download and extract into a staging directory under
TERRA_HOME. Compare the archive checksum if the provider publishes one. Thelz4test checks archive integrity and does not authenticate the source.
(
set -e
: "${TERRA_HOME:?Set TERRA_HOME to your initialized full-node directory}"
snapshot_url='PASTE_CURRENT_POLKACHU_SNAPSHOT_HTTPS_URL'
work_dir=$(mktemp -d "$TERRA_HOME/.snapshot.XXXXXX")
curl -fL "$snapshot_url" -o "$work_dir/terra.tar.lz4"
lz4 -t "$work_dir/terra.tar.lz4"
mkdir "$work_dir/restore"
set -o pipefail
lz4 -dc "$work_dir/terra.tar.lz4" |
tar -xf - --no-same-owner --no-same-permissions -C "$work_dir/restore"
test -d "$work_dir/restore/data"
printf 'Staged data directory: %s\n' "$work_dir/restore/data"
)
Inspect the staged files. The archive contains data/wasm. On the stopped non-signing node, use the reported staged data path to activate the snapshot. The script retains the previous database and the local node’s private validator state. Confirm the snapshot matches the selected release and leave state sync disabled for this method.
(
set -e
: "${TERRA_HOME:?Set TERRA_HOME}"
staged_data='PASTE_STAGED_DATA_DIRECTORY'
case "$staged_data" in
"$TERRA_HOME"/.snapshot.*/restore/data) ;;
*) printf '%s\n' 'Use the data path printed by the staging step.' >&2; exit 1 ;;
esac
test -d "$staged_data/wasm"
test -f "$TERRA_HOME/data/priv_validator_state.json"
install -m 0600 "$TERRA_HOME/data/priv_validator_state.json" \
"$staged_data/priv_validator_state.json"
previous_data=$(mktemp -d "$TERRA_HOME/.previous-data.XXXXXX")
mv "$TERRA_HOME/data" "$previous_data/data"
if ! mv "$staged_data" "$TERRA_HOME/data"; then
mv "$previous_data/data" "$TERRA_HOME/data"
exit 1
fi
printf 'Previous data saved at %s\n' "$previous_data/data"
)
If the restored data/upgrade-info.json exists and cosmovisor/current/upgrade-info.json is absent, read the name and height from the restored file. Confirm that upgrade was applied by the snapshot height and that your installed terrad is the matching release, then stage it under that plan name before the first start. Cosmovisor can back up the entire data directory when reconciling this marker. Allow disk space for that copy.
jq '{name, height, info}' "$TERRA_HOME/data/upgrade-info.json"
# After verifying the snapshot height and matching the release:
plan_name='PASTE_VERIFIED_PLAN_NAME'
cosmovisor add-upgrade "$plan_name" "$(command -v terrad)"
After startup, verify that block height advances. Remove the downloaded archive when you have confirmed recovery.
State sync
State sync restores application state near the head without replaying blocks from genesis. Use clean node data, two trusted Terra RPC endpoints, and reachable P2P peers that serve snapshot chunks. Terra also needs a compatible data/wasm directory.
- Stop a running service with
sudo systemctl stop terra.service. Use the clean data directory from a freshterrad init. To resync an existing node, work in a separately initialized node home and retain the old one. Follow the signer recovery procedure for a validator. - Use two independently operated Terra RPCs. The example uses MNST Terra Gate and PublicNode. It verifies their chain IDs, selects a height 2,000 blocks below the lower head, and prints settings only when both endpoints agree on the block hash. If they disagree, investigate before selecting a trusted block.
(
set -e
set -o pipefail
rpc_a='https://gate.terra.mnst.club/rpc'
rpc_b='https://terra-rpc.publicnode.com'
height_a=$(curl -fsS --connect-timeout 5 --max-time 25 "$rpc_a/block" |
jq -er '.result.block.header | select(.chain_id == "phoenix-1") | .height | tonumber')
height_b=$(curl -fsS --connect-timeout 5 --max-time 25 "$rpc_b/block" |
jq -er '.result.block.header | select(.chain_id == "phoenix-1") | .height | tonumber')
lower=$((height_a < height_b ? height_a : height_b))
test "$lower" -gt 2000
height=$((lower - 2000))
hash_a=$(curl -fsS --connect-timeout 5 --max-time 25 "$rpc_a/block?height=$height" | jq -er '.result.block_id.hash')
hash_b=$(curl -fsS --connect-timeout 5 --max-time 25 "$rpc_b/block?height=$height" | jq -er '.result.block_id.hash')
if ! [[ $hash_a =~ ^[[:xdigit:]]{64}$ && $hash_a == "$hash_b" ]]; then
printf '%s\n' 'Invalid or mismatched trust hash. Check both RPCs.' >&2
exit 1
fi
printf '[statesync]\nenable = true\nrpc_servers = "%s,%s"\ntrust_height = %s\ntrust_hash = "%s"\n' \
"$rpc_a" "$rpc_b" "$height" "$hash_a"
)
Merge the output into the existing [statesync] section of config/config.toml. Keep a trust_period appropriate for the network and shorter than the unbonding period. Add the state-sync peer from Polkachu’s live-peers page if you need a connection to its snapshot provider.
Restore compatible Wasm data before starting. Use a known-good data/wasm from your own node, or extract the separate Polkachu Wasm archive into staging with the command below. Use the printed path in the next block to install it in a clean TERRA_HOME/data/. The install step refuses to overwrite an existing Wasm directory. If you see AppHash errors, check the binary, Wasm data, and trusted block.
(
set -e
: "${TERRA_HOME:?Set TERRA_HOME}"
work_dir=$(mktemp -d "$TERRA_HOME/.wasm.XXXXXX")
curl -fL https://snapshots.polkachu.com/wasm/terra/terra_wasmonly.tar.lz4 \
-o "$work_dir/wasm.tar.lz4"
lz4 -t "$work_dir/wasm.tar.lz4"
mkdir "$work_dir/restore"
set -o pipefail
lz4 -dc "$work_dir/wasm.tar.lz4" |
tar -xf - --no-same-owner --no-same-permissions -C "$work_dir/restore"
test -d "$work_dir/restore/wasm"
printf 'Staged Wasm directory: %s\n' "$work_dir/restore/wasm"
)
(
set -e
: "${TERRA_HOME:?Set TERRA_HOME}"
staged_wasm='PASTE_STAGED_WASM_DIRECTORY'
case "$staged_wasm" in
"$TERRA_HOME"/.wasm.*/restore/wasm) ;;
*) printf '%s\n' 'Use the Wasm path printed by the staging step.' >&2; exit 1 ;;
esac
test -d "$staged_wasm"
test -d "$TERRA_HOME/data"
test ! -e "$TERRA_HOME/data/wasm" && test ! -L "$TERRA_HOME/data/wasm" || exit 1
mv "$staged_wasm" "$TERRA_HOME/data/wasm"
)
Polkachu · State sync and Wasm archive State-sync peer CometBFT · Trust settings
Start and verify
Enable the service after the snapshot or state-sync setup. Once the journal shows that RPC has started, run the status request below. Repeat it as the node catches up. For a replay from genesis, use historical binaries at the heights specified in Terra Docs.
sudo systemctl daemon-reload
sudo systemctl enable --now terra.service
sudo journalctl -u terra.service -n 80 --no-pager
curl -fsS http://127.0.0.1:26657/status |
jq '{chain: .result.node_info.network, sync: .result.sync_info}'
node_info.networkisphoenix-1.latest_block_heightadvances and the latest block time approaches the network head.catching_upbecomesfalseafter the node catches up. Compare the height with the MNST API or Monster Explorer.
Terra Docs · Replay from genesis Monster Explorer · Latest blocks
Public endpoints
MNST Terra Gate serves the Phoenix-1 JSON API, CometBFT RPC, Cosmos REST, WebSocket, and gRPC from gate.terra.mnst.club.
- MNST JSON API
- https://gate.terra.mnst.club
- MNST CometBFT RPC
- https://gate.terra.mnst.club/rpc
- MNST Cosmos REST
- https://gate.terra.mnst.club/rest
- MNST WebSocket
wss://gate.terra.mnst.club/rpc/websocket- MNST gRPC
gate.terra.mnst.club:443
Methods by transport
Expand a transport to see what Gate accepts from clients. Run requests in the Gate console.
Gate JSON API
Status, indexed blocks and transactions, wallet queries, staking and GitHub metadata.
GET /get_status · GET /get_latest_blocks · GET /get_address_history/{address}
CometBFT RPC
HTTP GET with query parameters or JSON-RPC POST to /rpc.
Cosmos REST
Cosmos resources over HTTP. Encoding, simulation and broadcast accept JSON.
gRPC
Native HTTP/2 methods. Use grpcurl or a gRPC SDK.
WebSocket 3
Subscription commands run in a single open connection.
subscribeunsubscribeunsubscribe_all
The catalog is unavailable. In the local preview, check that Gate is running.
Connect to the Gateway
Open the WebSocket with websocat and send the NewBlock subscription JSON. Download the service definitions before running grpcurl. The example works with reflection disabled. For a Terra client use the /rpc and /rest base URLs and only the host and port for gRPC.
API=https://gate.terra.mnst.club
RPC="$API/rpc"
REST="$API/rest"
curl -fsS "$API/get_status"
curl -fsS "$RPC/status"
curl -fsS "$REST/cosmos/base/tendermint/v1beta1/blocks/latest"
curl -fsS "$API/transports/terra-tendermint.protoset" -o terra-tendermint.protoset
grpcurl -protoset terra-tendermint.protoset -d '{}' gate.terra.mnst.club:443 cosmos.base.tendermint.v1beta1.Service/GetLatestBlock
websocat wss://gate.terra.mnst.club/rpc/websocket
# Send after connecting:
{"jsonrpc":"2.0","id":1,"method":"subscribe","params":{"query":"tm.event='NewBlock'"}}
Terrad command reference
Read-only queries
The proposal-list command prints recent IDs. Replace PROPOSAL_ID with one of them and TERRAVALOPER with the validator operator address. The upgrade command returns an empty JSON object when no plan is scheduled. The REST check shows the same case as a null plan.
RPC='https://gate.terra.mnst.club/rpc'
terrad status --node "$RPC"
terrad query gov proposals --page-limit 5 --page-reverse --node "$RPC" --output json |
jq '.proposals[] | {id, status}'
terrad query gov proposal PROPOSAL_ID --node "$RPC" --output json
terrad query staking validator TERRAVALOPER --node "$RPC" --output json
terrad query upgrade plan --node "$RPC" --output json
curl -fsS https://gate.terra.mnst.club/rest/cosmos/upgrade/v1beta1/current_plan | jq '.plan'
Prepare transaction examples
These examples generate transaction data for review. Supply your key name, recipient, amount and fee in uluna, and the correct proposal or validator. Vote options are yes, no, no_with_veto, and abstain. Choose fees for your own transaction and verify the chain, signer, amount, and recipient before any separate signing and broadcast.
RPC='https://gate.terra.mnst.club/rpc'
terrad tx bank send KEY RECIPIENT AMOUNT_ULUNA --generate-only \
--chain-id phoenix-1 --node "$RPC" --fees FEE_ULUNA
terrad tx distribution withdraw-rewards TERRAVALOPER --commission --generate-only \
--from KEY --chain-id phoenix-1 --node "$RPC" --fees FEE_ULUNA
terrad tx gov vote PROPOSAL_ID VOTE_OPTION --generate-only \
--from KEY --chain-id phoenix-1 --node "$RPC" --fees FEE_ULUNA
terrad tx slashing unjail --generate-only \
--from KEY --chain-id phoenix-1 --node "$RPC" --fees FEE_ULUNA
terrad tx staking create-validator validator.json --generate-only \
--from KEY --chain-id phoenix-1 --node "$RPC" --fees FEE_ULUNA
With the current Cosmos SDK command shape, create-validator takes a JSON file. Use your node’s consensus public key from terrad comet show-validator and specify the amount, moniker, commission rates, and minimum self-delegation. Check the installed binary’s help for the exact schema. For unjailing, resolve the reason for jailing first and check whether the validator is eligible.
{
"pubkey": {"@type": "/cosmos.crypto.ed25519.PubKey", "key": "BASE64_CONSENSUS_PUBLIC_KEY"},
"amount": "AMOUNT_ULUNA",
"moniker": "YOUR_VALIDATOR_NAME",
"commission-rate": "YOUR_COMMISSION",
"commission-max-rate": "YOUR_MAX_COMMISSION",
"commission-max-change-rate": "YOUR_MAX_DAILY_CHANGE",
"min-self-delegation": "YOUR_MINIMUM_SELF_DELEGATION_IN_ULUNA"
}
Upgrades and troubleshooting
Stage the planned upgrade
Check the on-chain plan through MNST Gate and compare it with the Terra Core release notes. Confirm the upgrade name, scheduled height, architecture, and checksum before placing a binary on the node. For a coordinated on-chain upgrade, use the exact plan name in Cosmovisor. Follow release instructions for maintenance releases that have no coordinated height.
export DAEMON_NAME=terrad
export DAEMON_HOME="$TERRA_HOME"
cosmovisor add-upgrade 'UPGRADE_PLAN_NAME' /absolute/path/to/verified/terrad
sudo systemctl status terra.service --no-pager
sudo journalctl -u terra.service -f
Diagnose a stalled node
sudo systemctl status terra.service --no-pager
sudo journalctl -u terra.service -n 100 --no-pager
df -h "$TERRA_HOME"
curl -fsS http://127.0.0.1:26657/net_info | jq '.result.n_peers'
curl -fsS http://127.0.0.1:26657/status |
jq '.result.sync_info | {latest_block_height, latest_block_time, catching_up}'
- No peers. Check firewall rules, DNS, and the configured P2P port. Try a current seed, a suitable peer from the live list, or an updated address book.
- Wrong network or stalled height. Compare the genesis chain ID, local block time, upgrade height, and binary version with the network.
- State-sync errors. Confirm the trusted header is recent, both RPCs agree, and compatible Wasm data is present.
- Disk or database errors. Check free space and filesystem health. Preserve the existing data before attempting a rebuild, especially on a validator.
Governance and tools
- Monster Explorer · Governance
Read proposal text and inspect voting status in the MNST explorer.
- Monster Node · Validator profile
Open the verified MNST validator page in Monster Explorer.
- Polkachu · REStake
Optional third-party compounding tool. REStake uses delegated Authz permissions. Before enabling it, verify the grantee address, scope, and expiry in your wallet. See the REStake documentation.
External services and references
MNST owns the guide, its English and Russian pages, styles, icons, and browser-side search. The endpoint examples use MNST Gate and Monster Explorer. The guide does not load third-party scripts, fonts, analytics, images, or a search service. The external links below provide node software, network data, and technical references.
- Terra network documentation: Terra Docs for node setup, sync, validator operation, and troubleshooting.
- Terra Core and Go: Phoenix Directive releases and official Go installation instructions. GitHub hosts the release assets and source code.
- Cosmos tooling: Cosmovisor in the Cosmos SDK and CometBFT state-sync documentation.
- Genesis file: the official Phoenix-1 genesis JSON is served from an AWS S3 bucket.
- Peer and snapshot data: Polkachu · Terra peer, address-book, snapshot, and Wasm data links supplies linked seed, live-peer, address-book, snapshot, and Wasm archive data. Download files come from
snapshots.polkachu.com. - Independent state-sync RPC: the state-sync example compares MNST Gate with PublicNode’s Terra RPC before using a trusted block.
- Optional compounding reference: REStake’s Authz documentation describes a third-party tool linked from the governance section.