The Aztec Network is a privacy-focused blockchain platform designed to enable secure and private transactions. This guide provides instructions for setting up and running an Aztec sequencer node, a critical component of the network infrastructure.
Before starting, ensure you have the following:
- Aztec CLI Tool: Install the Aztec CLI tool and verify the correct version for the testnet using
aztec-up alpha-testnet. - Operating System: A Linux or macOS machine with terminal access.
- Community Support: Join the Aztec Discord for assistance and updates.
The aztec start command simplifies the process of running a sequencer node. It uses default configurations based on the --network flag and launches a Docker container with the sequencer software.
-
RPC Endpoints:
- L1 Execution Client: Specify via
--l1-rpc-urlsor theETHEREUM_HOSTSenvironment variable. - L1 Consensus Client: Specify via
--l1-consensus-host-urlsor theL1_CONSENSUS_HOST_URLSenvironment variable.
- L1 Execution Client: Specify via
-
Ethereum Keys:
- Private Key: Set using
--sequencer.validatorPrivateKey. - Public Address: Specify using
--sequencer.coinbase.
- Private Key: Set using
-
Networking:
- Forward UDP and TCP traffic on port
40400to your local IP. - Pass your external IP address to
--p2p.p2pIp.
- Forward UDP and TCP traffic on port
-
Sepolia ETH:
- Obtain Sepolia ETH for gas costs via a faucet or the Aztec Discord.
Before starting the sequencer, you need to configure your environment variables. Follow these steps:
-
Copy the example environment file:
cp example.env .env
-
Open the
.envfile in a text editor and fill in the required values:# Environment Variables # Ethereum RPC URL for the L1 execution client ETHEREUM_HOSTS=https://eth-sepolia.g.alchemy.com/v2/ # Ethereum RPC URL for the L1 consensus client L1_CONSENSUS_HOST_URLS=https://ethereum-sepolia.core.chainstack.com/beacon/ # Ethereum private key for the sequencer VALIDATOR_PRIVATE_KEY= # Public address associated with your private key COINBASE_ADDRESS=0x95 # Log level for debugging LOG_LEVEL=debug # Data directory for storing sequencer data DATA_DIRECTORY=/data
-
Save the
.envfile after making the changes.