Peers & Seeds

Here we will try our best to update peer and seeds list.

Query your own PEER

Set external P2P address

sed -i "/^external_address = .*/ s//external_address = \"${ADDRESS:="$(curl -fsSL https://ifconfig.me):${PORT:=26656}"}\"/" $HOME/.chaind/config/config.toml
echo $(junod tendermint show-node-id)@$(curl -4 ifconfig.co):26656

Add seeds with sed

SEEDS=<    >
sed -i "s/^\(seeds *= *\).*$/\1$SEEDS/" config.toml

Query how many peers connected to your network

curl -s http://localhost:26657/net_info | jq '.result.n_peers'

Query connected peers on your network

curl -s http://localhost:26657/net_info | jq '.result.peers[].node_info.id + "@" + .result.peers[].remote_ip'

Last updated