Aztec Sequencer
ℹ️
Recommended Hardware: 8 Cores, 16GB RAM, 1TB of storage (NVME)
Install Dependencies
sudo curl -fsSL https://get.docker.com/ -o get-docker.sh && sh get-docker.sh
sudo apt update
sudo apt install -y docker-compose
Open the firewall
sudo ufw allow 22
sudo ufw allow 8080
sudo ufw allow 8880
sudo ufw allow 40400
Install Service
bash -i <(curl -s https://install.aztec.network)
Note: you will see some questions over it, you can type "Y" for both question
Add the path, We must add the binary path so that you can easily call the binary
echo 'export PATH="$HOME/.aztec/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
To make you sure that the binary is the latest version:
aztec-up latest
source ~/.bash_profile
Create a directory we are working on + the storage folder we store
mkdir -p /root/aztec/aztec-data
mkdir -p /root/aztec/bin
You need to link the default binary to the custom path
sudo ln -s /root/.aztec/bin/* /root/aztec/bin/
sudo ln -s /root/.aztec/bin/.aztec-run /root/aztec/bin/
Replace the value the environtment below accordingly
MY_IP
MY_WALLET_ADDRESS
MY_PRIVATE_KEY
########################################
###### [[ BASIC CONFIGURATION ]] #######
########################################
IP_ADDRESS=MY_IP
ETH_SEPOLIA_RPC=MY_RPC
ETH_BEACON=MY_BEACON_RPC
################################
###### [[ DATA WALLET ]] #######
################################
NODE_PORT=8000
ADMIN_PORT=8100
P2P_PORT=40100
WALLET_ADDRESS=MY_WALLET_ADDRESS
PUBLISHER_PRIVATE_KEY=MY_PRIVATE_KEY
PRIVATE_KEYS=MY_PRIVATE_KEY
DATA_DIR=/root/aztec/aztec-data
##################################
###### [[ AZTEC METRICS ]] #######
##################################
OTEL_RESOURCE_ATTRIBUTES="aztec.node_role=sequencer,aztec.registry_address=0x4d2cc1d5fb6be65240e0bfc8154243e69c0fb19e"
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://telemetry.alpha-testnet.aztec.network/v1/metrics
You can put the following command to create your service
sudo nano /etc/systemd/system/aztec-sequencer.service
fill that file with these ( please don't change anything on this, just copy and paste )
[Unit]
Description=Aztec Node Service
After=network.target
[Service]
User=root
WorkingDirectory=/root/aztec
EnvironmentFile=/root/aztec/env.file
ExecStart=/root/aztec/bin/aztec start --node --archiver --sequencer \
--network alpha-testnet \
--l1-rpc-urls ${ETH_SEPOLIA_RPC} \
--l1-consensus-host-urls ${ETH_BEACON} \
--sequencer.validatorPrivateKeys ${PRIVATE_KEYS} \
--sequencer.publisherPrivateKey ${PUBLISHER_PRIVATE_KEY} \
--p2p.p2pIp ${IP_ADDRESS} \
--port ${NODE_PORT} \
--admin-port ${ADMIN_PORT} \
--data-directory ${DATA_DIR} \
--p2p.p2pPort ${P2P_PORT}
LogLevelMax=info
Restart=always
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
How to start the service?
After you have added all above, you can try starting the service
sudo systemctl enable --now aztec-sequencer
sudo systemctl start aztec-sequencer
Congratulations, You have sucessfully started the service
How to check logs?
sudo journalctl -f -u aztec-sequencer