Live Peers

  • Network Type: Mainnet
  • Chain-id: morocco-1
  • Current Node version: barberry
  • Automatically adding Live peers to your config.toml file

    PEERS="$(curl -sS https://rpc.terp.indonode.net/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/.terp/config/config.toml