Skip to main content

Installation

composable

The complete infrastructure for cross-chain smart contracts, applications, and modular functionality.

Chain ID: centauri-1 | Latest Version Tag: v4.0.2 | Wasm: OFF

Website | Discord | Twitter

Chain explorer

https://explorer.nomadvalidator.com/composable

Public endpoints

Peering

state-sync

807502fe42397baa5c4abb46c3cfc9252f2353c2@rpc.composable.nomadvalidator.com:26656

seed-node

addrbook

curl -Ls http://composable.nomadvalidator.com/addrbook.json > $HOME/.banksy/config/addrbook.json

live-peers (30)

peers="[email protected]:2630,[email protected]:53656"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.banksy/config/config.toml

Installation

Chain ID: centauri-1 | Latest Version Tag: v4.0.2 |

Setup validator name

{% hint style='info' %} Replace YOUR_MONIKER_GOES_HERE with your validator name {% endhint %}

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.20.5.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 composable-centauri
git clone https://github.com/notional-labs/composable-centauri.git
cd composable-centauri
git checkout v4.0.2

# Build binaries
make build

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

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

Install Cosmovisor and create a service

# Download and install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]

# Create service
sudo tee /etc/systemd/system/centaurid.service > /dev/null << EOF
[Unit]
Description=composable node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.banksy"
Environment="DAEMON_NAME=centaurid"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.banksy/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable centaurid

Initialize the node

# Set node configuration
centaurid config chain-id centauri-1
centaurid config keyring-backend file

# Initialize the node
centaurid init <MONIKER> --chain-id centauri-1

# Download genesis and addrbook
curl -Ls http://composable.nomadvalidator.com/genesis.json > $HOME/.banksy/config/genesis.json
curl -Ls http://composable.nomadvalidator.com/addrbook.json > $HOME/.banksy/config/addrbook.json

# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"[email protected]:2635\"|" $HOME/.banksy/config/config.toml

# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ppica\"|" $HOME/.banksy/config/app.toml

# Set pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.banksy/config/app.toml

### Download latest chain snapshot

```bash
SOON

State Sync (Use State Sync Or Snapshot If not you will got panic error null)

centaurid tendermint unsafe-reset-all --home $HOME/.banksy --keep-addr-book

SNAP_NAME=$(curl -s https://snapshots.nodejumper.io/composable/info.json | jq -r .fileName) curl "https://snapshots.nodejumper.io/composable/${SNAP_NAME}" | lz4 -dc - | tar -xf - -C "$HOME/.banksy"

STATESYNC

Start service and check the logs

sudo systemctl start centaurid && sudo journalctl -u centaurid -f --no-hostname -o cat