Node Setup Quick Start (testnet)

Use the guided setup shell scripts!

1. Install Prerequisites:

jq, yq, sed, curl, wget, make, and Go are required for running the various commands and config scripts and commands in this guide:

  • jq : sudo apt install jq

  • sed : sudo apt install sed

  • curl: sudo apt install curl

  • wget : sudo apt install wget

Download the latest binary:

mkdir -p ~/layer/binaries && cd ~/layer/binaries && mkdir v5.1.0 && cd v5.1.0 && wget https://github.com/tellor-io/layer/releases/download/v5.1.0/layer_Linux_x86_64.tar.gz && tar -xvzf layer_Linux_x86_64.tar.gz

2. Download the script that matches your system:

wget command for getting palmito linux script

wget command for getting palmito mac script

3. Edit the environment variables (optional)

If you'd like to use a custom home directory, custom peers or RPCs you can configure those at the top of the script. The defaults are:

# ...
export LAYER_NODE_URL=https://node-palmito.tellorlayer.com/rpc/
export RPC_NODE_ID=ac7c10dc3de67c4394271c564671eeed4ac6f0e0
export KEYRING_BACKEND="test"
export PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
export LAYER_HOME="/home/$(logname)/.layer"
export STATE_SYNC_RPC="https://node-palmito.tellorlayer.com/rpc/"
export KEY_NAME="test"
# ...

Use your favorite text editor to change these before running the script if desired.

nano configure_palmito_linux.sh # if linux
# --or--
nano configure_palmito_mac.sh # if mac

4. Give the script permission to execute, and run it:

chmod +x configure_palmito_linux.sh && configure_palmito_linux.sh
# --or--
chmod +x configure_palmito_mac.sh && configure_palmito_mac.sh

The script should greet you and begin the guided setup!

Last updated