EvenoR

AZTEC Node

Jul 14th, 2025 (edited)
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.29 KB | None | 0 0
  1. #0.
  2. sudo apt update -y && sudo apt upgrade -y
  3. for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
  4.  
  5. sudo apt-get update
  6. sudo apt-get install ca-certificates curl gnupg
  7. sudo install -m 0755 -d /etc/apt/keyrings
  8. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  9. sudo chmod a+r /etc/apt/keyrings/docker.gpg
  10.  
  11. echo \
  12.   "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  13.  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  14.   sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullY
  15.  
  16. sudo apt update -y && sudo apt upgrade -y
  17.  
  18. sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  19.  
  20. # Test Docker
  21. sudo docker run hello-world
  22.  
  23. #1.
  24. curl -sSL https://raw.githubusercontent.com/zunxbt/installation/main/node.sh | bash
  25. #2.
  26. sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  27. sudo chmod +x /usr/local/bin/docker-compose
  28. #3.
  29. sudo systemctl start docker
  30. sudo systemctl enable docker
  31. #4.
  32. bash -i <(curl -s https://install.aztec.network)
  33. #5.
  34. #nano /root/.bash_profile
  35. #6.
  36. #export PATH=$PATH:/root/.aztec/bin
  37. #7.
  38. source /root/.bash_profile
  39. #8.
  40. aztec-up alpha-testnet
  41. #9.
  42. aztec --version
  43. #10.
  44. mkdir -p ~/aztec-data/{sequencer,prover,broker}
  45. #11.
  46. mkdir ~/aztec-nodes
  47. cd ~/aztec-nodes
  48. #12.
  49. nano docker-compose.yml
  50. #13.
  51. version: "3.8"
  52. services:
  53.   # Full Node + Sequencer by TRTtheSalad
  54.   sequencer-node:
  55.     image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
  56.     network_mode: host
  57.     environment:
  58.       ETHEREUM_HOSTS: "https://ethereum-sepolia-rpc.publicnode.com"
  59.       L1_CONSENSUS_HOST_URLS: "https://ethereum-sepolia-beacon-api.publicnode.com"
  60.       VALIDATOR_PRIVATE_KEY: "PRIVATE_KEY>"
  61.       P2P_IP: "<YOUR_VPS_IP>"
  62.       DATA_DIRECTORY: /data/sequencer
  63.       LOG_LEVEL: debug
  64.     entrypoint: >
  65.       sh -c 'node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --network alpha-testnet --node --archiver --sequencer'
  66.     volumes:
  67.       - ~/aztec-data/sequencer:/data/sequencer
  68.  
  69.   # Prover Node
  70.   prover-node:
  71.     image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
  72.     command:
  73.       - node
  74.       - --no-warnings
  75.       - /usr/src/yarn-project/aztec/dest/bin/index.js
  76.       - start
  77.       - --prover-node
  78.       - --archiver
  79.       - --network
  80.       - alpha-testnet
  81.     depends_on:
  82.       - prover-broker
  83.     environment:
  84.       ETHEREUM_HOSTS: "https://ethereum-sepolia-rpc.publicnode.com"
  85.       L1_CONSENSUS_HOST_URL: "https://ethereum-sepolia-beacon-api.publicnode.com"
  86.       PROVER_BROKER_HOST: http://prover-broker:8080
  87.       PROVER_PUBLISHER_PRIVATE_KEY: "<PRIVATE_KEY>"
  88.       DATA_DIRECTORY: /data/prover
  89.       LOG_LEVEL: info
  90.     volumes:
  91.       - ~/aztec-data/prover:/data/prover
  92.  
  93.   # Prover Broker
  94.   prover-broker:
  95.     image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
  96.     command:
  97.       - node
  98.       - --no-warnings
  99.       - /usr/src/yarn-project/aztec/dest/bin/index.js
  100.       - start
  101.       - --prover-broker
  102.       - --network
  103.       - alpha-testnet
  104.     environment:
  105.       ETHEREUM_HOSTS: "https://ethereum-sepolia-rpc.publicnode.com"
  106.       DATA_DIRECTORY: /data/broker
  107.       LOG_LEVEL: info
  108.     volumes:
  109.       - ~/aztec-data/broker:/data/broker
  110.  
  111.   # Prover Agent
  112.   prover-agent:
  113.     image: aztecprotocol/aztec:0.85.0-alpha-testnet.5
  114.     command:
  115.       - node
  116.       - --no-warnings
  117.       - /usr/src/yarn-project/aztec/dest/bin/index.js
  118.       - start
  119.       - --prover-agent
  120.       - --network
  121.       - alpha-testnet
  122.     environment:
  123.       PROVER_BROKER_HOST: http://prover-broker:8080
  124.       PROVER_ID: "<WALLET_ADDRESS>"
  125.       PROVER_AGENT_COUNT: "1"
  126.       LOG_LEVEL: info
  127. #14.
  128. docker-compose up -d
  129. #15.
  130. aztec add-l1-validator \
  131.   --l1-rpc-urls https://ethereum-sepolia-rpc.publicnode.com\
  132.   --private-key <PRIVATE_KEY> \
  133.   --attester <WALLET_ADDRESS> \
  134.   --proposer-eoa <WALLET_ADDRESS> \
  135.   --staking-asset-handler 0xF739D03e98e23A7B65940848aBA8921fF3bAc4b2 \
  136.   --l1-chain-id 11155111
  137. #16.
  138. docker-compose logs -f sequencer-node
  139. #17.
  140. docker-compose logs -f prover-node
  141.  
  142.  
  143. https://aztec.nethermind.io/explore
Advertisement
Add Comment
Please, Sign In to add comment