Skip to content

Latest commit

 

History

History
349 lines (190 loc) · 7.1 KB

File metadata and controls

349 lines (190 loc) · 7.1 KB

Aztec Sequencer Guide

🖥️ Device/System Requirements

image

Pre-Requirements 🛠

  • Docker & Docker Compose

    🔺(Let run your docker in background if u are using local Device)

  • Aztec Tool

  • Sepolia Rpc URL

Install All Require Dependecies

sudo apt-get update && sudo apt-get upgrade -y
  • Install Node.js
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt update && sudo apt install -y nodejs
  • Other Packages
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 screen ufw -y

Install Docker & Docker Compose

sudo apt update && sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update && sudo apt install -y docker-ce && sudo systemctl enable --now docker
sudo usermod -aG docker $USER && newgrp docker
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r .tag_name)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose
  • Verify installation
docker --version && docker-compose --version

Install the Aztec CLI

bash -i <(curl -s https://install.aztec.network)
  • Lets Config it to your corrent Shell/Path
echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
  • Verify the Installation with-
aztec -h
  • Set the correct version for the testnet
aztec-up latest

Load your wallet with Sepolia Faucet

https://sepolia-faucet.pk910.de/

https://www.alchemy.com/faucets/ethereum-sepolia

Allow Incoming connections on Ports

sudo ufw allow 22
sudo ufw allow ssh
sudo ufw enable
sudo ufw allow 40400
sudo ufw allow 8080

Get Seapolia and Beacon API Key's

  • Some sites (if you need just dm me i can send more links)

https://drpc.org/dashboard

https://developer.metamask.io/key/active-endpoints

https://www.alchemy.com

Start Your Sequencer 🍥

  • Create a Screen Session
screen -S aztec

🔺🔺--- Execute below given command to Start Your node & Dont forget to make changes in it-

aztec start --node --archiver --sequencer \
  --network alpha-testnet \
  --l1-rpc-urls Eth_Sepolia_RPC \
  --l1-consensus-host-urls Eth-beacon_sepolia_RPC \
  --sequencer.validatorPrivateKey 0xYourPrivateKey \
  --sequencer.coinbase YourAddress \
  --p2p.p2pIp Your_ip
  • Replace Eth_Sepolia_RPC with your actual one! -follow above steps

  • Replace Eth-beacon_sepolia_RPC with your actual one -follow above steps

  • Replace 0xYourPrivateKey with your actual EVM wallet pvt key 🔺 (dont forget to add 0x at starting)

  • Replace YourAddress with your actual evm wallet address

  • Replace Your_ip with your External IP ...

    -U can get External IP by running curl ifconfig.me

  • It will take few times to download and Sync! 🥶

Screenshot 2025-05-02 164041

  • The Successfull Running Should Look like this 👇

Screenshot 2025-05-02 172143

♦️ Use this Template for saving data:

------👇Save These Info/Data👇 ------

Aztec Sequencer Node ( XXXXX dc)

• Ethereum sepolia rpc :

• Beacon_sepolia_RPC :

• PVT KEY :

• MM Public Address :

• IP ( cloud vps) :

• Block Number :

• Base64 encoded string :

------ 👆Save These Info/Data👆 ------

Detached and Attached From the Screen

  • For detached from screen session - ctrl , a + d

  • For Attach -

screen -r aztec

Get Apprentice Role In dc- 😙

📋 Step 1: Get the latest proven block number

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"
  • Save this block number for the next steps

  • Example output: 12345

🔍 Step 2: Generate your sync proof

curl -s -X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"node_getArchiveSiblingPath","params":["BLOCK_NUMBER","BLOCK_NUMBER"],"id":67}' \
http://localhost:8080 | jq -r ".result"
  • Replace both BLOCK_NUMBER with your: (check step1)

  • This will output a long base64-encoded string - (Copy it completely)

Step 3: Register with Discord

image

  • Now it will promt u to enter address , block number , proof

  • Place your evm wallet address in address section

  • Place block-number From the Step-1

  • Place sync Proof from Step-2

  • Success message should look like this! & U will get the role!

Screenshot 2025-05-02 175859

Screenshot 2025-05-02 180049

Register as a Validator 🔗⛓️

  • Replace Eth_Sepolia_Rpc with your actual sepolia rpc url from Metamask developer.

  • Replace your-private-key with your evm wallet pvt key! Dont forget to add 0x at starting

  • Replace your-validator-address with your evm wallet address

  • Replace your-validator-address with your evm wallet address

aztec add-l1-validator \
  --l1-rpc-urls Eth_Sepolia_Rpc \
  --private-key your-private-key \
  --attester your-validator-address \
  --proposer-eoa your-validator-address \
  --staking-asset-handler 0xF739D03e98e23A7B65940848aBA8921fF3bAc4b2 \
  --l1-chain-id 11155111
  • Note- image

📈 Upgrade to v0.87.6 🧃

🪜Step-1) Move to Aztec Screen

screen -r aztec

🪜Step-2) Stop your node if already running: with ctrl+c

🪜Step-3) Update with-:

aztec-up latest

🪜 Step-4) Start your node with Start command:

  • 📣Note-: If your logs are like this: Then you are good to go: Your sequencers working fine:

image

Made with ❤️ by Morsyxbt