- CPU 4+ Cores
- 16GB+ RAM
- 2TB SSD/NVMe
- Network: 25 Mbps up/down bandwidth
docker ps -a
docker stop [aztec-container-id] && docker rm [aztec-container-id]
rm -rf .aztec/alpha-testnet/data
aztec-up alpha-testnet
apt -y update && apt -y upgrade
apt dist-upgrade && sudo apt autoremove
sudo ufw allow 8545/tcp
sudo ufw allow 3500/tcp
sudo ufw allow 4000/tcp
sudo ufw allow 30303/tcp
sudo ufw allow 30303/udp
sudo ufw allow 12000/udp
sudo ufw allow 13000/tcp
sudo ufw allow 22/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status
sudo adduser --home /home/geth --disabled-password --gecos 'Geth Client' geth
sudo adduser --home /home/beacon --disabled-password --gecos 'Prysm Beacon Client' beacon
sudo groupadd eth
sudo usermod -a -G eth geth
sudo usermod -a -G eth beacon
sudo mkdir -p /var/lib/secrets
sudo chgrp -R eth /var/lib/ /var/lib/secrets
sudo chmod 750 /var/lib/ /var/lib/secrets
sudo openssl rand -hex 32 | tr -d '\n' | sudo tee /var/lib/secrets/jwt.hex > /dev/null
sudo chown root:eth /var/lib/secrets/jwt.hex
sudo chmod 640 /var/lib/secrets/jwt.hex
sudo -u geth mkdir /home/geth/geth
sudo -u beacon mkdir /home/beacon/beacon
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.15.11-36b2371c.tar.gz
tar -xvf geth-linux-amd64-1.15.11-36b2371c.tar.gz
sudo mv geth-linux-amd64-1.15.11-36b2371c/geth /usr/bin/geth
sudo nano /etc/systemd/system/geth.service
[Unit]
Description=Geth
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Restart=always
RestartSec=5s
User=geth
WorkingDirectory=/home/geth
ExecStart=/usr/bin/geth \
--sepolia \
--http \
--http.addr "0.0.0.0" \
--http.port 8545 \
--http.api "eth,net,engine,admin" \
--authrpc.addr "127.0.0.1" --authrpc.port 8551 \
--http.corsdomain "*" \
--http.vhosts "*" \
--datadir /home/geth/geth \
--authrpc.jwtsecret /var/lib/secrets/jwt.hex
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start geth
sudo systemctl enable geth
sudo systemctl status geth
sudo journalctl -fu geth
sudo -u beacon mkdir /home/beacon/bin
sudo -u beacon curl https://raw.githubusercontent.com/prysmaticlabs/prysm/master/prysm.sh --output /home/beacon/bin/prysm.sh
sudo -u beacon chmod +x /home/beacon/bin/prysm.sh
sudo nano /etc/systemd/system/beacon.service
[Unit]
Description=Prysm Beacon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Restart=always
RestartSec=5s
User=beacon
ExecStart=/home/beacon/bin/prysm.sh beacon-chain \
--sepolia \
--http-modules=beacon,config,node,validator \
--rpc-host=0.0.0.0 --rpc-port=4000 \
--grpc-gateway-host=0.0.0.0 --grpc-gateway-port=3500 \
--datadir /home/beacon/beacon \
--execution-endpoint=http://127.0.0.1:8551 \
--jwt-secret=/var/lib/secrets/jwt.hex \
--checkpoint-sync-url=https://checkpoint-sync.sepolia.ethpandaops.io/ \
--genesis-beacon-api-url=https://checkpoint-sync.sepolia.ethpandaops.io/ \
--accept-terms-of-use
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start beacon
sudo systemctl enable beacon
sudo systemctl status beacon
sudo journalctl -fu beacon
nano sync.sh
#!/bin/bash
echo "=== GETH SYNC STATUS ==="
curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' \
-H "Content-Type: application/json" http://localhost:8545 | jq
echo ""
echo "=== BEACON SYNC STATUS ==="
curl -s http://localhost:3500/eth/v1/node/syncing | jq
chmod +x sync.sh
./sync.sh
aztec start --node --archiver --sequencer \
--network alpha-testnet \
--l1-rpc-urls RPC_URL \
--l1-consensus-host-urls CONSENSUS_HOST_URL \
--sequencer.validatorPrivateKey 0xPrivateKey \
--sequencer.coinbase 0xPublicAddress \
--p2p.p2pIp IP \
--port 8081
- Change
RPC_URLwith:
http://Your_VPS_IP:8545
- Change
CONSENSUS_HOST_URLwith:
http://Your_VPS_IP:3500
- Enter and wait until it fully synced, you can check the logs using:
docker ps -a
docker logs -f [aztec-container-ID]
systemctl stop geth.service
systemctl disable geth.service
rm /etc/systemd/system/geth.service
rm -rf /home/geth
systemctl stop beacon.service
systemctl disable beacon.service
rm /etc/systemd/system/beacon.service
rm -rf /home/beacon

