Skip to content

Mayankgg01/Aztec_Sequencer_Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 

Repository files navigation

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป 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 1.2.1

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 Free of Cost

  • Go to - https://tinyurl.com/y8v7tm2d

  • Manually Sign up with Email address- u will rcvd 100$ voucher- (Dont sign up with Google)

  • Select Ethereum Sepolia

  • Scroll Down and Select the Growth Plan for which RPC u need, (Sepolia or Beacon)

  • Click on Select Voucher

  • Select 50$ Voucher

  • Now Click on Pay with Balance

  • Here we go... U got your API key for free!

  • U can see your Api key on API section!

Screenshot 2025-05-15 172028

  • More Other Sites!

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.validatorPrivateKeys 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 v1.2.0 ๐Ÿงƒ

๐ŸชœStep-1) Move to Aztec Screen

screen -r aztec

๐ŸชœStep-2) Stop your node if already running: with ctrl+c

๐ŸชœStep-3) Delete old data & Update with-:

rm -rf ~/.aztec/alpha-testnet/data/
aztec-up 1.2.1

๐Ÿชœ 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

๐Ÿ‘‰ Join TG for more Updates: https://telegram.me/cryptogg

If U have any issue then open a issue on this repo or Dm me on TG~

Thank U! ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

Happy Coding๐Ÿ’—

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published