LogoLogo
  • Introduction
  • Testnet
    • 0G-Labs
      • Network Overview
      • Installation
        • Storage Node
        • Data Availability Node
        • Data Availability Client
    • Aztec
      • Installation
      • Register as Validator
    • Coretensor
      • Installation
    • Cysic
      • Installation
    • Dill
      • Network Overview
      • Installation
    • Drosera
      • Installation
        • Operator
        • Add Second Operator
        • Trapper
    • Farcaster
      • Installation
    • Warden
      • Network Overview
      • Installation
      • Snapshot & State Sync
      • Validator Setup
  • Mainnet
    • Humanode
      • Installation
    • Initverse
      • Installation
  • Archieve
    • Privasea
      • Installation
  • Services
  • My Contact
Powered by GitBook
On this page
  • Prerequisites
  • Installation Aztec Sequencer
  • Create environment file
  • Create Dockercompose file
  • Start docker compose
  • How to check logs

Was this helpful?

  1. Testnet
  2. Aztec

Installation

Prerequisites

Hardware
Minimum Spesification

CPU

8 Cores

RAM

16 GB

Disk

1 TB SSD

Bandwidth

25 Mbps

Installation Aztec Sequencer

Install Depedencies

sudo apt-get update && sudo apt-get upgrade -y
sudo apt install curl iptables build-essential git wget lz4 jq make gcc nano automake autoconf tmux htop nvme-cli libgbm1 pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev  -y

Install Docker

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

Install Aztec CLI

bash -i <(curl -s https://install.aztec.network)
echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Upgrade to latest version

aztec-up latest

Verify the latest version

aztec —version

Create Worker Folder

mkdir aztec
cd aztec

Create environment file

nano .env
ETHEREUM_RPC_URL=RPC_URL
CONSENSUS_BEACON_URL=BEACON_URL
VALIDATOR_PRIVATE_KEY=0xYourPrivateKey
COINBASE=0xYourAddress
P2P_IP=YOUR_VPS_IP

RPC_URL: Create a Sepolia Ethereum HTTP API in Alchemy (https://www.alchemy.com/) BEACON_URL: You can get free Sepolia Beacon HTTP RPC on Publicnode (https://publicnode.com/)

Create Dockercompose file

nano docker-compose.yml
services:
  aztec-node:
    container_name: aztec-sequencer
    image: aztecprotocol/aztec:latest
    restart: unless-stopped
    environment:
      ETHEREUM_HOSTS: ${ETHEREUM_RPC_URL}
      L1_CONSENSUS_HOST_URLS: ${CONSENSUS_BEACON_URL}
      DATA_DIRECTORY: /data
      VALIDATOR_PRIVATE_KEY: ${VALIDATOR_PRIVATE_KEY}
      COINBASE: ${COINBASE}
      P2P_IP: ${P2P_IP}
      LOG_LEVEL: debug
    entrypoint: >
      sh -c 'node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --network alpha-testnet --node --archiver --sequencer'
    ports:
      - 40400:40400/tcp
      - 40400:40400/udp
      - 8080:8080
    volumes:
      - /root/.aztec/alpha-testnet/data/:/data

Start docker compose

docker compose up -d

How to check logs

cd ~/aztec && docker compose logs -fn 1000
PreviousAztecNextRegister as Validator

Last updated 5 days ago

Was this helpful?