Skip to main content

Symphony

Endpoints

APIRPC
https://symphony-testnet-api.kgnodes.xyz/https://symphony-testnet-rpc.kgnodes.xyz/

Explorer: https://explorer.kgnodes.xyz/symphonytestnet

Installation

Update OS

sudo apt update && sudo apt upgrade -y

Installing Dependencies

sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

Installing GO

cd $HOME
VER="1.22.6"
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

Setting up environment variables

echo "export SYMPHONY_PORT="37"" >> $HOME/.bash_profile
source $HOME/.bash_profile

Initializing and configuring the node

Download Binary

cd $HOME
rm -rf symphony
git clone https://github.com/Orchestra-Labs/symphony
cd symphony
git checkout v0.3.0
make build
mkdir -p ~/.symphonyd/cosmovisor/upgrades/0.3.0/bin
mv $HOME/symphony/build/symphonyd ~/.symphonyd/cosmovisor/upgrades/0.3.0/bin/
sudo ln -s ~/.symphonyd/cosmovisor/upgrades/0.3.0 ~/.symphonyd/cosmovisor/current -f
sudo ln -s ~/.symphonyd/cosmovisor/current/bin/symphonyd /usr/local/bin/symphonyd -f
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.6.0
cd

Node Settings

symphonyd config chain-id symphony-testnet-3
symphonyd config keyring-backend test
symphonyd config node tcp://localhost:${SYMPHONY_PORT}657

Initializing the Node

symphonyd init "your-moniker"

Downloading genesis and addressbook

wget -O $HOME/.symphonyd/config/genesis.json https://snapshot.kgnodes.xyz/snapshot/symphony/genesis.json
wget -O $HOME/.symphonyd/config/addrbook.json  https://snapshot.kgnodes.xyz/snapshot/symphony/addrbook.json

Setting seeds and peers

SEEDS="10838131d11f546751178df1e1045597aad6366d@34.41.169.77:26656"
PEERS="166702f266452da586531844f17a5f49b359d50e@37.27.124.51:31656,b3fc76a630180a42d8baf24a226a4bd2a6b746ad@65.21.215.142:39656,b679e98dc610f21b23a13def0934008fe6691315@65.21.232.175:29156,1d62fc3d1ef27f55fa6488b8dfbf140be5554034@185.148.242.61:39656,a3548cfce105e32337ebc3ecae1240e4daf07011@37.27.127.107:35656,5c0c693e0e6e22e12be5fb47752937e832e053eb@92.118.57.222:35656,a607916c985fd494d2dd70818394573198e1e20a@198.7.118.102:35656,14baf7f538abb121a3e936b4561dd3c7145035ca@65.109.83.40:29256,71794da928a384af0b408b45ce42c3c3e7fcc016@84.247.182.122:35656,79ae50c3da6a26edc3f7ae0497e79a362655f401@65.109.84.235:39656,3bad680d3eebdf0e9168ad5802e2611c95eab124@168.119.37.164:27056,64226174e1f78c84088b9330b83a81cbceff93fd@198.135.48.174:35656,5babbfc079857f8fd669ad52858e0f44689ebf27@198.7.118.104:35656,fbc16e44352b1a91df9a8e623b117595b096697c@65.109.139.230:35656,fd3d6aed45c6ca3af824e4ebb51fd56fec1b2862@149.50.106.27:39656,cb5fcd50a1a316a6072470b92abed32ca4857948@100.42.178.251:35656,23ecd7a3b2d97711cec5c3a8159cdb0c540c1d77@65.109.115.15:35656,86aa72db2f204029aae6053fa5e3edc2261da41d@65.109.93.124:29256,6c847fa3cb3e6991d6581c0be21f8f424832d416@75.119.157.77:35656,2062d4c9b26e01ca74e110428b06f8edc6cd5a05@195.201.194.231:35656,f2fd9bb5c39d3b944c12d480a70f19f963bb6d2f@198.7.118.106:35656,0bec7d2970be72fd1e8352141a46da3a0398c498@65.108.109.48:12656,cd8729ec138328cb13423e065fe980417214a5b4@198.7.118.105:35656,46230ac4af10b6c50454c7874f07d50d3db297a2@185.227.135.165:26656,bd980568469c8c0e8c5fd0f8adcbbbe94ddd041a@135.181.79.242:35656,e81442bf66ac2b72409a82a270db51b6acafb4bd@177.54.156.69:28656,894ca90b3ac451bcdb87276b0c4f815dd3583e74@213.199.39.187:35656,ebf7c64e8fbef868f00bcfbb971712e270c79b0f@65.109.30.35:35656,93d7328ba32806ac19bd100a4f1c4c2be5867dc5@100.42.187.55:35656,286728a7805cec658e64c7420639a7d2bfc59710@38.242.225.173:35656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.symphonyd/config/config.toml

Updating ports in app.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

Updating ports in config.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

Configuring pruning settings

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

Setting gas and other configurations

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

Creating service file

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

Enabling and starting the service

sudo systemctl daemon-reload
sudo systemctl enable symphonyd

Downloading latest snap

Latest Snapshot:

SizeHeigtTimeIndexer
15G5460582024-09-15 19:42 UTCcustom: 100/0/10
sudo systemctl stop symphonyd

cp $HOME/.symphonyd/data/priv_validator_state.json $HOME/.symphonyd/priv_validator_state.json.backup

symphonyd tendermint unsafe-reset-all --home $HOME/.symphonyd --keep-addr-book
curl https://snapshot.kgnodes.xyz/snapshot/symphony/snap_symphonyd.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.symphonyd


mv $HOME/.symphonyd/priv_validator_state.json.backup $HOME/.symphonyd/data/priv_validator_state.json

sudo systemctl restart symphonyd
sudo journalctl -u symphonyd -f --no-hostname -o cat

Checking logs

sudo journalctl -u symphonyd -f --no-hostname -o cat

Wallet

Creating a New Wallet

symphonyd keys add wallet-name

Importing existing wallet

symphonyd keys add wallet-name --recover

Getting faucet

https://testnet.ping.pub/symphony/faucet |

Creating Validator

symphonyd tx staking create-validator \
--amount "90000note" \
--pubkey $(symphonyd tendermint show-validator) \
--moniker "yourmoniker" \
--identity "optional identity signature (ex. UPort or Keybase)" \
--details "validator's (optional) details" \
--website "validator's (optional) website" \
--chain-id symphony-testnet-3 \
--commission-rate "0.05" \
--commission-max-rate "0.2" \
--commission-max-change-rate "0.01" \
--min-self-delegation "1" \
--fees "800note" \
--from wallet-name \
--node=http://localhost:${SYMPHONY_PORT}657 \
-y

Self-Delegating

symphonyd tx staking delegate $(symphonyd keys show wallet-name --bech val -a) amount0000note \
--chain-id symphony-testnet-3 \
--from "wallet-name" \
--fees "800note" \
--node=http://localhost:${SYMPHONY_PORT}657 \
-y

Unjail Validator

symphonyd tx slashing unjail --from wallet --chain-id symphony-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.025note -y

Deleting the Node

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_/d" $HOME/.bash_profile