Network
EVM
Aztec
Installation

Aztec Sequencer

ℹ️

Recommended Hardware: 8 Cores, 16GB RAM, 1TB of storage (NVME)

Install Dependencies

sudo curl -fsSL https://get.docker.com/ -o get-docker.sh && sh get-docker.sh
sudo apt update
sudo apt install -y docker-compose

Open the firewall

sudo ufw allow 22
sudo ufw allow 8080
sudo ufw allow 8880
sudo ufw allow 40400

Install Service

bash -i <(curl -s https://install.aztec.network)

Note: you will see some questions over it, you can type "Y" for both question

Add the path, We must add the binary path so that you can easily call the binary

echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

Replace the value the environtment below accordingly

echo "IP_ADDRESS=$(curl -4 ifconfig.me)
ETH_SEPOLIA_RPC=https://alchemy.com/xxx
ETH_BEACON=https://drpc.com/xxx
PRIVATE_KEY=0x..
WALLET_ADDRESS=0x" | sudo tee -a ~/.bash_profile

You can execute all of the following command to create your service

source ~/.bash_profile
mkdir $HOME/aztec
echo "
[Unit]
Description=Aztec Node Service
After=network.target
 
[Service]
User=root
Environment=ETH_SEPOLIA_RPC=$ETH_SEPOLIA_RPC
Environment=ETH_BEACON=$ETH_BEACON
Environment=PRIVATE_KEY=$PRIVATE_KEY
Environment=IP_ADDRESS=$IP_ADDRESS
Environment=WALLET_ADDRESS=$WALLET_ADDRESS
WorkingDirectory=$HOME/aztec
ExecStart=$HOME/.aztec/bin/aztec start --node --archiver --sequencer \
  --network alpha-testnet \
  --l1-rpc-urls \$ETH_SEPOLIA_RPC \
  --l1-consensus-host-urls \$ETH_BEACON \
  --sequencer.validatorPrivateKey \$PRIVATE_KEY \
  --sequencer.coinbase \$WALLET_ADDRESS \
  --p2p.p2pIp \$IP_ADDRESS \
  --port 8080 \
  --admin-port 8880
Restart=always
RestartSec=5
LimitNOFILE=65535
 
[Install]
WantedBy=multi-user.target
" | sudo tee /etc/systemd/system/aztec-sequencer.service

How to start the service?

After you have added all above, you can try starting the service

sudo systemctl enable --now aztec-sequencer

After all has been set up, you can regist your Address to become a Validator

  aztec add-l1-validator \ 
  --l1-rpc-urls $ETH_SEPOLIA_RPC \
  --private-key $PRIVATE_KEY \
  --attester $WALLET_ADDRESS \
  --proposer-eoa $WALLET_ADDRESS \
  --staking-asset-handler 0xF739D03e98e23A7B65940848aBA8921fF3bAc4b2 \
  --l1-chain-id 11155111

Congratulations, You have sucessfully started the service

How to check logs?

sudo journalctl -f -u aztec-sequencer

How to stop nodes?

sudo systemctl disable --now aztec-sequencer
sudo rm -rf ~/.aztec