Network Overview
Symphony
Symphony is a Cosmos-based blockchain enabling global trading of real-world assets, like real estate and gold, without relying on traditional banking infrastructure, offering crypto-native solutions.
https://rpc-symphony-t.sychonix.com
https://api-symphony-t.sychonix.com
de40129d6a823e7dff8edec28a60998373b43ed0@symphony-testnet.sychonix.com:12156
PEERS="$(curl -sS https://rpc-symphony-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/ /config/config.toml
curl -L https://snapshot.sychonix.com/testnet/symphony/genesis.json > $HOME/.symphonyd/config/genesis.json
curl -L https://snapshot.sychonix.com/testnet/symphony/addrbook.json > $HOME/.symphonyd/config/addrbook.json
Installation
- Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev aria2 -y
- Install Go
VER="1.21.6"
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
cd $HOME
git clone https://github.com/Orchestra-Labs/symphony
cd symphony
git checkout v0.4.1
make install
- Initialize The Node
symphonyd init $MONIKER --chain-id symphony-testnet-4
sed -i -e "s|^keyring-backend *=.*|keyring-backend = \"os\"|" $HOME/.symphonyd/config/client.toml
sed -i -e "s|^chain-id *=.*|chain-id = \"symphony-testnet-4\"|" $HOME/.symphonyd/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:12157\"|" $HOME/.symphonyd/config/client.toml
- Download Genesis & Addrbook
curl -L https://snapshot.sychonix.com/testnet/symphony/genesis.json > $HOME/.symphonyd/config/genesis.json
curl -L https://snapshot.sychonix.com/testnet/symphony/addrbook.json > $HOME/.symphonyd/config/addrbook.json
- Configure Seeds and Peers
SEEDS="de40129d6a823e7dff8edec28a60998373b43ed0@symphony-testnet.sychonix.com:12156"
PEERS="$(curl -sS https://rpc-symphony-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.symphonyd/config/config.toml
- Update Port Configuration
sed -i -e "s%:1317%:12117%; s%:8080%:12180%; s%:9090%:12190%; s%:9091%:12191%; s%:8545%:12145%; s%:8546%:12146%; s%:6065%:12165%" $HOME/.symphonyd/config/app.toml
sed -i -e "s%:26658%:12158%; s%:26657%:12157%; s%:6060%:12160%; s%:26656%:12156%; s%:26660%:12161%" $HOME/.symphonyd/config/config.toml
- Customize Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
$HOME/.symphonyd/config/app.toml
- Set Minimum Gas Price, Enable Prometheus, and Disable the Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.25note\"|" $HOME/.symphonyd/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.symphonyd/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.symphonyd/config/config.toml
- Create 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 symphonyd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
- Download Current Snapshot
curl "https://snapshot.sychonix.com/testnet/symphony/symphony-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.symphonyd"
- Enable the Service and Start the Node
sudo systemctl daemon-reload
sudo systemctl enable symphonyd.service
sudo systemctl restart symphonyd.service && sudo journalctl -u symphonyd.service -f --no-hostname -o cat
Upgrade
No chain upgrades scheduled yet.
Peers
PEERS="$(curl -sS https://rpc-symphony-t.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.symphonyd/config/config.toml
Snapshot
Height: Loading... | Last updated: Loading... | Size: Loading...
- Install dependencies, if needed
sudo apt update && sudo apt install aria2
- Stop Service
sudo systemctl stop symphonyd
- Back up priv_validator_state.json
cp $HOME/.symphonyd/data/priv_validator_state.json $HOME/.symphonyd/priv_validator_state.json.backup
- Reset the data
symphonyd tendermint unsafe-reset-all --home $HOME/.symphonyd --keep-addr-book
- Download Snapshot
aria2c -x 16 -s 16 -o symphony-snapshot.tar.lz4 https://snapshot.sychonix.com/testnet/symphony/symphony-snapshot.tar.lz4
lz4 -dc symphony-snapshot.tar.lz4 | tar -xf - -C $HOME/.symphonyd
rm -v symphony-snapshot.tar.lz4
- Restore Backup and Restart Service
mv $HOME/.symphonyd/priv_validator_state.json.backup $HOME/.symphonyd/data/priv_validator_state.json
sudo systemctl restart symphonyd && sudo journalctl -u symphonyd -f -o cat
Addrbook
curl -L https://snapshot.sychonix.com/testnet/symphony/addrbook.json > $HOME/.symphonyd/config/addrbook.json
Genesis
curl -L https://snapshot.sychonix.com/testnet/symphony/genesis.json > $HOME/.symphonyd/config/genesis.json
API
api-symphony-t.sychonix.com
RPC
rpc-symphony-t.sychonix.com
CLI Cheatsheet
Wallet Management
symphonyd keys add
symphonyd keys add --recover
symphonyd keys list
symphonyd keys delete
symphonyd keys export
symphonyd keys import .backup
symphonyd q bank balances $(symphonyd keys show -a)
Validator Management
Moniker
Identity
Details
Website
Security Contact
Amount
symphonyd tx staking create-validator \ --amount=1000000note \ --pubkey=$(symphonyd tendermint show-validator) \ --moniker="" \ --identity="" \ --details="" \ --website="" \ --security-contact= \ --chain-id=symphony-testnet-4 \ --commission-rate=0.05 \ --commission-max-rate=0.20 \ --commission-max-change-rate=0.01 \ --min-self-delegation=1 \ --gas-prices 0.25note \ --gas "auto" \ --gas-adjustment "1.5" \ --from wallet \ -y
symphonyd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--chain-id=symphony-testnet-4 \
--commission-rate=0.07 \
--from wallet \
--gas=auto \
--gas-prices 0.25note \
-y
symphonyd tx slashing unjail --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5
symphonyd query slashing signing-info $(symphonyd tendermint show-validator)
symphonyd q staking validator $(symphonyd keys show wallet --bech val -a)
symphonyd q bank denom-metadata -oj | jq
symphonyd status 2>&1 | jq -r '.SyncInfo.catching_up // .sync_info.catching_up'
symphonyd status 2>&1 | jq -r '.SyncInfo.latest_block_height // .sync_info.latest_block_height'
Token Management
symphonyd tx distribution withdraw-all-rewards --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
symphonyd tx distribution withdraw-rewards $(symphonyd keys show wallet --bech val -a) --commission --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
symphonyd tx staking delegate $(symphonyd keys show wallet --bech val -a) 1000000note --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
symphonyd tx staking redelegate $(symphonyd keys show wallet --bech val -a) 1000000note --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
symphonyd tx staking delegate 1000000note --from --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
symphonyd tx staking unbond $(symphonyd keys show wallet --bech val -a) 1000000note --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
symphonyd tx bank send wallet 1000000note --from wallet --chain-id symphony-testnet-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.25note -y
Service Management
sudo systemctl daemon-reload
sudo systemctl enable symphonyd
sudo systemctl disable symphonyd
sudo systemctl start symphonyd
sudo systemctl stop symphonyd
sudo systemctl restart symphonyd
sudo systemctl status symphonyd
sudo journalctl -u symphonyd -f --no-hostname -o cat
CUSTOM_PORT= sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.symphonyd/config/config.toml sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.symphonyd/config/app.toml
cd $HOME && sudo systemctl stop symphonyd && sudo systemctl disable symphonyd && sudo rm /etc/systemd/system/symphonyd.service && sudo systemctl daemon-reload && sudo rm -rf $(which symphonyd) && sudo rm -rf $HOME/.symphonyd && sudo rm -rf $(which symphonyd)