PEERS=$(curl -s -X POST https://rpc-pell.j-node.net -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/.pellcored/config/config.toml" if [ $? -eq 0 ]; thenecho -e "Configuration file updated successfully with new peers" elseecho "Failed to update configuration file."fi
https://evm-rpc-pell.j-node.net
https://rpc-pell.j-node.net
https://api-pell.j-node.net
f7f1f3a9e1fdd42c3e597b3ff556f39c8edc5834@peer-node1-pell.j-node.net:20656
103b755578215a240d2e70a4294643e35ecfd6fa@peer-node2-pell.j-node.net:21656