PEERS=$(curl -s -X POST https://rpc-story.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/.story/story/config/config.toml" if [ $? -eq 0 ]; thenecho -e "Configuration file updated successfully with new peers" elseecho "Failed to update configuration file."fi
https://rpc-story.josephtran.xyz
https://evm-rpc-story.josephtran.xyz
https://api-story.josephtran.xyz
9fc21eaa5f39f3611875a951775c5b1ebdf032ee@peer-story.josephtran.xyz:26656
enode://dd2441549175771ee0393ddbeaa58172270c184b2a46bcdeba0513bc3e589e42cdb4dfc147c6ad6f837a9c4e1c477428a2df80f6d4dd61d8f3c891ab2a273899@152.53.102.226:30303
enode://39e5a5584611cd39b93655574f986665002a0990b62ad008d09790b0ada3035983b960944b222ff4b330e74347cca9173894a8e8012a4680fb5c3cc7964bc56d@152.53.66.0:30303
enode://80e179b6beda00b7429cc1872a34a92b958651593dab6347bb254f4a343bbf3932ebfbb714d32d999c07849b98406315cab44d4a564a7e5aacb53d199568a8a8@202.61.250.9:30303