Live Peers

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

    peers="$(curl -sS https://rpc-zenrock.vinjan.xyz:443/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/.zrchain/config/config.toml