sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt install git -y
执行如下命令
bash <(curl -s https://raw.githubusercontent.com/Cryptoxiaoxiang/Sepolia-RPC/refs/heads/main/setup.sh)看到如下截图就是对了:
💡 按
CTRL + C退出日志.
使用命令:
curl -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' \
http://localhost:8545- ✅ 同步完成会显示
{"jsonrpc":"2.0","id":1,"result":false}- 🚫 还在同步会显示
{
"jsonrpc":"2.0",
"id":1,
"result":{
"startingBlock":"0x0",
"currentBlock":"0x1a2b3c",
"highestBlock":"0x1a2b4d"
}
}检查同步状态:
curl http://localhost:3500/eth/v1/node/syncing- ✅ 同步完成的话会显示
{
"data": {
"head_slot": "12345",
"sync_distance": "0",
"is_syncing": false
}
}- 🚫 正在同步会显示
{
"data": {
"head_slot": "12345",
"sync_distance": "100",
"is_syncing": true
}
}你的地址就是
http://你的服务器IP:8545 比如 http://203.0.113.5:8545
你的地址就是
http://localhost:3500
添加防火墙规则 在你的RPC节点上使用:
`sudo ufw allow from "你的Aztec节点IP" to any port 8545 proto tcp`