Installation

Chain ID
Latest Version Tag
Custom Port

initiation-1

v0.2.15

179

Setup validator name

Replace YOUR_MONIKER_GOES_HERE with your validator name

MONIKER="YOUR_MONIKER_GOES_HERE"

Install dependencies

UPDATE SYSTEM AND INSTALL BUILD TOOLS

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade

INSTALL GO

sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.12.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

Download and build binaries

# Clone project repository
cd $HOME
rm -rf initia
git clone https://github.com/initia-labs/initia.git
cd initia
git checkout v0.2.15

# Build binaries
make build

# Prepare binaries for Cosmovisor
mkdir -p $HOME/.initia/cosmovisor/genesis/bin
mv build/initiad $HOME/.initia/cosmovisor/genesis/bin/
rm -rf build

# Create application symlinks
sudo ln -s $HOME/.initia/cosmovisor/genesis $HOME/.initia/cosmovisor/current -f
sudo ln -s $HOME/.initia/cosmovisor/current/bin/initiad /usr/local/bin/initiad -f

Install Cosmovisor and create a service

Initialize the node

Download latest chain snapshot

Start service and check the logs

Set up validator

Official documentation: https://docs.initia.xyz/run-initia-node/running-initia-node/becoming-a-validatorarrow-up-right

1. Create a wallet

First of all we will need to create wallet for our validator. You have two options for that.

OPTION 1 - CREATE NEW WALLET

OPTION 2 - RECOVER EXISTING WALLET

Save the mnemonic output as this is the only way to recover your validator wallet in case you lose it!

To list your wallets use command below

2. Fund a wallet

To create validator you have to fund the previously created wallet using https://faucet.testnet.initia.xyz/arrow-up-right

To check wallet balance use command below

3. Create validator

Please make sure you have adjusted moniker, identity, details, website to match your values.

Save the ~/.initia/config/priv_validator_key.json file as this is the only way to recover your validator signing key in case you lose it!

Set up Oracle

This guide is only for validator nodes

Official documentation: https://docs.initia.xyz/run-initia-node/running-initia-node/oraclearrow-up-right

The Slinky Oracle consists of two main elements:

  1. An on-chain component that retrieves price data from the sidecar with each block, forwards these prices to the blockchain through vote extensions, and compiles prices from all validators involved.

  2. A sidecar process dedicated to polling price information from various providers and delivering this data to the on-chain component.

Step 1: Clone the Repository and build binaries

Step 2: Run oracle

CREATE SYSTEMD SERVICE

ENABLE AND START SYSTEMD SERVICE

Step 3: Validating Prices

Upon launching the oracle, you should observe successful price retrieval from the provider sources. Additionally, you have the option to execute the test client script available in the Slinky repository by using the command:

Step 4: Enable Oracle Vote Extension

In order to utilize the Slinky oracle data in the Initia node, the Oracle setting should be enabled in the config/app.toml file.

Step 5: Check the systemd logs

To check service logs use command below:

Successfull Log examples:

Last updated