PEERS=$(curl -s -X POST https://rpc-prysm.josephtran.xyz -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"net_info","params":[],"id":1}' | jq -r '.result.peers[] | select(.connection_status.SendMonitor.Active == true) | "\(.node_info.id)@\(if .node_info.listen_addr | contains("0.0.0.0") then .remote_ip + ":" + (.node_info.listen_addr | sub("tcp://0.0.0.0:"; "")) else .node_info.listen_addr | sub("tcp://"; "") end)"' | tr '\n' ',' | sed 's/,$//' | awk '{print "\"" $0 "\""}')sed -i "s/^persistent_peers *=.*/persistent_peers = $PEERS/" "$HOME/.prym/config/config.toml" if [ $? -eq 0 ]; thenecho -e "Configuration file updated successfully with new peers" elseecho "Failed to update configuration file."fi
https://rpc-prysm.josephtran.xyz
https://api-prysm.josephtran.xyz
8fad74c6e91c62ea8f0b210aeff7e3413a631751@seed-prysm.j-node.net:17656
5f91fc0d6185fe29944bfa4698428f56cedbf0d2@peer-prysm.j-node.net:25656