Skip to main content

Symphony

Endpoints

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

Explorer: https://explorer.kgnodes.xyz/Symphony-Testnet

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.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/cosmovisor@v1.6.0
cd

Node Settings

symphonyd config chain-id symphony-testnet-4
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=""
PEERS="79ae50c3da6a26edc3f7ae0497e79a362655f401@65.109.84.235:39656,12174ce319b00e579d4eb468cbb4d22bc1bd2325@65.109.117.113:29256,4535bfdf160a5f86c7bcd365f92de2244bed676c@37.27.129.24:24656,5f54b4547e9e3d67d039035716f2b782aa4044bf@65.109.83.40:29256,0654e74ef51697b400ceff9a16af9e15bfe42a72@46.4.91.76:29256,8e5d8b822c67b9e60f884857c2b58af95e1c67be@152.53.19.64:14656,dd96b135e54de85ccdca1cdcb644bcd828ece8d5@207.244.238.120:26656,23ecd7a3b2d97711cec5c3a8159cdb0c540c1d77@65.109.115.15:35656,08899f4ed0da5effb36ff503bb996e5f91d972da@161.97.136.89:26656,aee296cf771493ae61e6e967c649cce5b17fe815@193.34.212.80:35656,b0d642c26f5d146020e91a8b41a5f55c121bcafc@149.50.116.116:31656,b8d7d41577ccc95a2ec021af0535bdbbf92e4896@149.50.116.91:35656,aaa75b52cbfd17e23522ea84daed811f5e998b6c@85.215.205.149:26656,fbc16e44352b1a91df9a8e623b117595b096697c@65.109.139.230:35656,f5106a86b004fd48cd962a57659446ac80be9bf1@65.109.123.185:35656,cd90944360c64e75fbaf1070d4031a13a7c34e94@65.109.99.190:35656,6ec88d52db29d6c64cbbebebd41a381245e4730f@65.108.199.62:12156,334460f2413f43d22bf6aaeb18dd474344c4f81b@185.185.83.244:35656,f21a0c449aa40052ab7780b073b1ecd387614eb9@65.108.129.49:38656,930848a35a0a5cb09948e278a2725202b689972e@116.202.150.231:12156,1d7d9daadcf61473624a655df9b36c6856bda7d3@149.102.159.7:26656,82263201811324fb02d63a2362c206a3051bb962@95.216.161.144:12156,e582d4ff016e1cc9e6d3da58b6473fc603f6683b@148.113.206.128:26656,4b8d4e1cf0961a3b38c7ab8cbc5947556644ba07@37.27.127.107:12156,d8be68af36e7b5ce3895a6eca4f26d5359adc7d7@38.242.148.66:35656,527826316789ced27c4462ec04ca14c6fdc1554e@65.21.215.142:35656,d39f98092a10fc3fda2902a6b1ef11232c6be521@45.90.96.30:51556,124ea9aeb44a9d8cf30d79b04bc77216fcf18c32@159.203.124.72:12156,3f58299f67b94e158945b8f15033a409f24cd577@51.178.92.69:18656,d20a8cf0f774a011a3d9753c7a2270a7fbdf403d@144.217.68.182:14556,862cc328d2b5c2ecd0864dab05eb4be0bc873a4b@95.217.61.32:35656,ea87334cd2f28f7b7b37ce72fb728778fccb4f3c@144.91.124.126:26656,cf419c8c14eabf7a1449d924280c77b42c708937@193.34.212.55:26656,d30babe97cbff419ad9a913744f92591c1ceeff0@45.140.146.212:26656,35b5d872c698c58bcc769954785c065e4dd9fe63@65.109.120.211:31656,bd980568469c8c0e8c5fd0f8adcbbbe94ddd041a@135.181.79.242:35656,a8dd994eea42c0cd9452e74f492e7fe8e5493dd2@195.201.194.231:26656,b679e98dc610f21b23a13def0934008fe6691315@65.21.232.175:29156,d6a780caa80c783ae21c2ade96e1911c40383587@185.232.70.33:16656,dd9865f17edd66402b66e1223ccfb8e15794b87b@138.68.105.233:26656,f26ec24b62cc7fe87719d12471387237ec481185@217.77.12.35:26656,7de36bd99f93ac13f55ccd3097115ce9d9ca5df5@45.94.58.14:26656,04fc002dbdefd7eeae45a871f1db2e137fa5f75d@62.169.16.24:26656"
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 = "0.025note"|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
2.3G2472102024-11-19 19:39 UTCcustom: 100/0/19
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

Creating Validator

#Learn your pubkey first
symphonyd tendermint show-validator

rm -rf /root/validator.json

#Than edit your validator.json folder
nano validator.json

#Where it contains,

{
"pubkey": yourpubkey,
"amount": "9900000note",
"moniker": "yourmoniker",
"identity": "",
"website": "",
"security": "",
"details": "",
"commission-rate": "0.05",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}

#Type ctrl x+y enter and save it

#Now Create a Validator according to that file

symphonyd tx staking create-validator /root/.symphonyd/validator.json \
--from=yourwallet \
--chain-id=symphony-testnet-4 \
--gas-adjustment 1.5 \
--gas-prices 0.025note \
--gas auto

Self-Delegating

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

Unjail Validator

symphonyd tx slashing unjail --from wallet --chain-id symphony-testnet-4 --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