πŸ”Œ Installation

πŸ’» Hardware Requirements

ComponentsMinimum Requirements
CPU6
RAM32 GB
STORAGE200 GB SSD

1️⃣ Installation packages and dependencies

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
sudo apt-get update && apt-get install -y libssl-dev

➑️ Go Installation

cd $HOME
VER="1.23.0"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin

2️⃣ Install node

echo "export SYMPHONY_PORT="35"" >> $HOME/.bash_profile
source $HOME/.bash_profile
cd $HOME
rm -rf symphony
git clone https://github.com/Orchestra-Labs/symphony
cd symphony
git checkout v0.4.1
make build
mkdir -p ~/.symphonyd/cosmovisor/upgrades/0.4.1/bin
mv $HOME/symphony/build/symphonyd ~/.symphonyd/cosmovisor/upgrades/0.4.1/bin/
sudo ln -s ~/.symphonyd/cosmovisor/upgrades/0.4.1 ~/.symphonyd/cosmovisor/current -f
sudo ln -s ~/.symphonyd/cosmovisor/current/bin/symphonyd /usr/local/bin/symphonyd -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
cd

➑️ Create a service

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

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.symphonyd
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=${HOME}/.symphonyd"
Environment="DAEMON_NAME=symphonyd"
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:~/.symphonyd/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF

➑️ Let’s activate it

sudo systemctl daemon-reload
sudo systemctl enable symphonyd

➑️ Initialize the node

symphonyd init "NODE-NAME" --chain-id symphony-testnet-4
sed -i -e '/^chain-id = /c\chain-id = "symphony-testnet-4"' $HOME/.symphonyd/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${SYMPHONY_PORT}657\"|" $HOME/.symphonyd/config/client.toml
sed -i -e '/^keyring-backend = /c\keyring-backend = "test"' $HOME/.symphonyd/config/client.toml

➑️ Genesis addrbook

curl https://raw.githubusercontent.com/MictoNode/symphony-cosmos/refs/heads/main/genesis.json -o ~/.symphonyd/config/genesis.json
curl https://raw.githubusercontent.com/MictoNode/symphony-cosmos/main/addrbook.json -o ~/.symphonyd/config/addrbook.json

➑️ Port

sed -i -e "s|^node *=.*|node = \"tcp://localhost:${SYMPHONY_PORT}657\"|" $HOME/.symphonyd/config/client.toml
sed -i.bak -e "s%:1317%:${SYMPHONY_PORT}317%g;
s%:8080%:${SYMPHONY_PORT}080%g;
s%:9090%:${SYMPHONY_PORT}090%g;
s%:9091%:${SYMPHONY_PORT}091%g;
s%:8545%:${SYMPHONY_PORT}545%g;
s%:8546%:${SYMPHONY_PORT}546%g;
s%:6065%:${SYMPHONY_PORT}065%g" $HOME/.symphonyd/config/app.toml
sed -i.bak -e "s%:26658%:${SYMPHONY_PORT}658%g;
s%:26657%:${SYMPHONY_PORT}657%g;
s%:6060%:${SYMPHONY_PORT}060%g;
s%:26656%:${SYMPHONY_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${SYMPHONY_PORT}656\"%;
s%:26660%:${SYMPHONY_PORT}660%g" $HOME/.symphonyd/config/config.toml

➑️ Peers and Seeds

SEEDS="[email protected]:25656"
PEERS="[email protected]:26656,[email protected]:21656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.symphonyd/config/config.toml

➑️ Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.symphonyd/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.symphonyd/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.symphonyd/config/app.toml

➑️ Gas Settings

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025note"|g' $HOME/.symphonyd/config/app.toml

➑️ Prometheus & Indexer

sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.symphonyd/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.symphonyd/config/config.toml

➑️ Starter Snap

symphonyd tendermint unsafe-reset-all --home $HOME/.symphonyd
if curl -s --head curl https://snapshot.sychonix.com/testnet/symphony/symphony-snapshot.tar.lz4  | head -n 1 | grep "200" > /dev/null; then
  curl https://snapshot.sychonix.com/testnet/symphony/symphony-snapshot.tar.lz4  | lz4 -dc - | tar -xf - -C $HOME/.symphonyd
    else
  echo no have snap
fi

➑️ Let’s get started

sudo systemctl start symphonyd && sudo journalctl -u symphonyd -f -o cat

➑️ Log Command

journalctl -u symphonyd -f -o cat

➑️ Create wallet

symphonyd keys add wallet-name

➑️ Import wallet

symphonyd keys add wallet-name --recover

➑️ Faucet

Faucet

➑️ Create Validator

symphonyd tendermint show-validator
rm -rf /root/validator.json
nano /root/validator.json
{
  "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey.......},
  "amount": "1000000note",
  "moniker": "",
  "identity": "",
  "website": "",
  "security": "",
  "details": "",
  "commission-rate": "0.1",
  "commission-max-rate": "0.2",
  "commission-max-change-rate": "0.01",
  "min-self-delegation": "1"
}
symphonyd tx staking create-validator $HOME/validator.json \
--from=wallet-name \
--chain-id=symphony-testnet-4 \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto
-y

➑️ Delegate to Yourself

symphonyd tx staking delegate $(symphonyd keys show wallet-name --bech val -a) amount000000note \
--chain-id symphony-testnet-4 \
--from "wallet-name" \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto
--node=http://localhost:${SYMPHONY_PORT}657 \
-y

➑️ Edit Validator

symphonyd tx staking edit-validator \
--chain-id symphony-testnet-4 \
--commission-rate 0.05 \
--new-moniker "validator-name</a>" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--from "wallet-name</a>" \
--node http://localhost:${SYMPHONY_PORT}657 \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto
-y

➑️ Complete deletion

cd $HOME
sudo systemctl stop symphonyd
sudo systemctl disable symphonyd
sudo rm -rf /etc/systemd/system/symphonyd.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/symphonyd
sudo rm -f $(which symphonyd)
sudo rm -rf $HOME/.symphonyd $HOME/symphony
sed -i "/SYMPHONY_PORT_/d" $HOME/.bash_profile

➑️ Block check

local_height=$(curl -s localhost:${SYMPHONY_PORT}657/status | jq -r .result.sync_info.latest_block_height); network_height=$(curl -s https://symphony-testnet-rpc.mictonode.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
  • Your node height - the current block of your node
  • Network height - the last block of the network
  • Blocks left - how many blocks your node has left to sync.