一、环境准备
1️⃣ 安装环境
curl -o envins.sh https://raw.githubusercontent.com/b1n4he/envins/refs/heads/main/envins.sh && sed -i 's/r$//' envins.sh && chmod +x envins.sh && ./envins.sh
2️⃣ 安装Aztec工具
bash -i <(curl -s https://install.aztec.network)
3️⃣ 添加环境变量
echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
# 如Mac系统则使用此命令
echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
4️⃣ 检查是否安装成功
aztec
5️⃣ 更新Aztec
aztec-up alpha-testnet
6️⃣ 获取测试网RPC
# 免费
Alchemy
https://www.alchemy.com/
# 付费
Ankr
# BeaconRPC
https://drpc.org/
7️⃣ 获取测试网ETH
https://sepolia-faucet.pk910.de/
二、安装节点
1️⃣ 开启Screen
screen -S aztec
2️⃣ 运行节点
aztec start --node --archiver --sequencer
--network alpha-testnet
--l1-rpc-urls RPC_URL
--l1-consensus-host-urls "BEACON_URL"
--sequencer.validatorPrivateKey 0xYourPrivateKey
--sequencer.coinbase 0xYourAddress
--p2p.p2pIp IP
三、获取Discord角色
1️⃣ 加入频道
https://discord.com/invite/aztec?source=post_page-----5db4b4885f8e---------------------------------------
2️⃣ 进入#operators | start-here ,输入/operator help查看提示
步骤1:获取最新区块号
curl -s -X POST -H 'Content-Type: application/json'
-d '{"jsonrpc":"2.0","method":"node_getL2Tips","params":[],"id":67}'
http://localhost:8080 | jq -r ".result.proven.number"
步骤2:生成同步证明(替换此处BLOCK_NUMBER)
curl -s -X POST -H 'Content-Type: application/json'
-d '{"jsonrpc":"2.0","method":"node_getArchiveSiblingPath","params":["BLOCK_NUMBER","BLOCK_NUMBE
R"],"id":67}'
http://localhost:8080 | jq -r ".result"
步骤 3:注册 Discord
/operator start