├── validator_kayit.sh ├── script.sh ├── aztec-docker-start.sh └── README.md /validator_kayit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ORANGE='\033[0;33m' 4 | GREEN='\033[1;32m' 5 | RESET='\033[0m' 6 | 7 | echo -e "${ORANGE}Validator olarak kayıt olunuyor...${RESET}" 8 | 9 | read -p "Sepolia RPC URL girin: " RPC 10 | read -p "Cüzdan Private Keyinizi girin: " PRVKEY 11 | read -p "Cüzdan Adresinizi Girin: " PUBKEY 12 | 13 | OUTPUT=$(aztec add-l1-validator \ 14 | --l1-rpc-urls $RPC \ 15 | --private-key $PRVKEY \ 16 | --attester $PUBKEY \ 17 | --proposer-eoa $PUBKEY \ 18 | --staking-asset-handler 0xF739D03e98e23A7B65940848aBA8921fF3bAc4b2 \ 19 | --l1-chain-id 11155111 2>&1) 20 | 21 | if echo "$OUTPUT" | grep -qi "ValidatorQuotaFilledUntil"; then 22 | TS=$(echo "$OUTPUT" | grep -oE 'ValidatorQuotaFilledUntil\([0-9]+\)' | grep -oE '[0-9]+' | head -n1) 23 | HUMAN_TIME=$(export TZ="Europe/Istanbul"; date -d "@$TS" "+%d %B %Y %H:%M:%S") 24 | echo -e "${ORANGE}⚠ Günlük validator limiti dolmuş olabilir.${RESET}" 25 | echo -e "${GREEN}⏳ Bir sonraki deneme zamanı (TR saatiyle): $HUMAN_TIME${RESET}" 26 | elif echo "$OUTPUT" | grep -qi "Error\|invalid\|stack"; then 27 | echo -e "${ORANGE}⚠ Bir hata oluştu. Girdiğiniz bilgileri kontrol edin.${RESET}" 28 | else 29 | echo -e "${GREEN}✅ Validator kaydı başarılı oldu.${RESET}" 30 | fi 31 | -------------------------------------------------------------------------------- /script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ORANGE='\033[0;33m' 4 | GREEN='\033[1;32m' 5 | CYAN='\033[0;36m' 6 | RESET='\033[0m' 7 | 8 | clear 9 | echo -e "${CYAN}" 10 | echo "██ ██ ███████ ██ ██ ██ ██" 11 | echo "██ ██ ██ ██ ██ ██ ██ " 12 | echo "██ ██ █████ ██ ██ █████ " 13 | echo "██ ██ ██ ██ ██ ██ ██ " 14 | echo "████████ ██ ███████ ██ ██" 15 | echo -e "${RESET}" 16 | echo -e "${GREEN}Script başlatılıyor: Ufuk tarafından hazırlanmıştır.${RESET}" 17 | 18 | sleep 2 19 | 20 | echo -e "${CYAN}Gerekli bağımlılıklar yükleniyor...${RESET}" 21 | sudo apt update && sudo apt install curl wget screen jq -y 22 | 23 | echo -e "${CYAN}Docker kurulumu kontrol ediliyor...${RESET}" 24 | if ! command -v docker &> /dev/null; then 25 | echo -e "${ORANGE}Docker bulunamadı, kurulum başlatılıyor...${RESET}" 26 | curl -fsSL https://get.docker.com -o get-docker.sh 27 | sh get-docker.sh 28 | rm get-docker.sh 29 | fi 30 | 31 | echo -e "${GREEN}Docker kurulumu tamamlandı.${RESET}" 32 | 33 | echo -e "${CYAN}Aztec CLI kuruluyor...${RESET}" 34 | curl -fsSL https://install.aztec.network | bash 35 | export PATH="$HOME/.aztec/bin:$PATH" 36 | 37 | echo -e "${CYAN}Testnet'e geçiliyor...${RESET}" 38 | aztec-up alpha-testnet 39 | 40 | echo -e "${CYAN}IP adresi tespit ediliyor...${RESET}" 41 | IP=$(curl -s https://api.ipify.org) 42 | echo -e "${GREEN}Tespit edilen IP: $IP${RESET}" 43 | 44 | read -p "Sepolia RPC URL girin: " RPC 45 | read -p "Beacon (consensus) URL girin: " BEACON 46 | read -p "Cüzdan private key girin: " PRVKEY 47 | read -p "Cüzdan adresi girin (0x ile başlayan): " PUBKEY 48 | 49 | echo -e "${CYAN}Node başlatılıyor...${RESET}" 50 | 51 | cat > $HOME/start_aztec_node.sh < /dev/null; then 26 | echo -e "${ORANGE}Docker bulunamadı, kurulum başlatılıyor...${RESET}" 27 | curl -fsSL https://get.docker.com -o get-docker.sh 28 | sh get-docker.sh 29 | rm get-docker.sh 30 | fi 31 | 32 | echo -e "${GREEN}Docker hazır.${RESET}" 33 | 34 | # Girdi al 35 | read -p "Sepolia RPC URL girin: " RPC 36 | read -p "Beacon (consensus) URL girin: " BEACON 37 | read -p "Cüzdan private key girin: " PRVKEY 38 | read -p "Cüzdan adresi (0x ile): " PUBKEY 39 | 40 | # IP adresini al 41 | IP=$(curl -s https://api.ipify.org) 42 | echo -e "${GREEN}Tespit edilen IP: $IP${RESET}" 43 | 44 | # Eski container silinsin 45 | echo -e "${CYAN}Eski aztec-node konteyneri siliniyor...${RESET}" 46 | docker rm -f aztec-node 2>/dev/null 47 | 48 | # Node başlat 49 | 50 | echo -e "${CYAN}Docker ile Aztec node başlatılıyor...${RESET}" 51 | docker run -d --name aztec-node \ 52 | -e HOME=/root \ 53 | -e FORCE_COLOR=1 \ 54 | -e P2P_PORT=40400 \ 55 | -p 8080:8080 -p 40400:40400 -p 40400:40400/udp \ 56 | --add-host host.docker.internal:host-gateway \ 57 | --user 0:0 \ 58 | --entrypoint node \ 59 | aztecprotocol/aztec:0.85.0-alpha-testnet.8 \ 60 | /usr/src/yarn-project/aztec/dist/bin/index.js \ 61 | --node --archiver --sequencer \ 62 | --network alpha-testnet \ 63 | --l1-rpc-urls $RPC \ 64 | --l1-consensus-host-urls $BEACON \ 65 | --sequencer.validatorPrivateKey $PRVKEY \ 66 | --sequencer.coinbase $PUBKEY \ 67 | --p2p.p2pIp $IP \ 68 | --p2p.maxTxPoolSize 1000000000 69 | 70 | sleep 2 71 | 72 | echo -e "${GREEN}Node başarıyla başlatıldı. Logları görmek için:${RESET}" 73 | echo -e "${CYAN}docker logs -f aztec-node${RESET}" 74 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Gp3YTDybIAAmTYH](https://github.com/user-attachments/assets/cdbcbc64-6901-41f3-85ac-f9e59b91b6e3) 2 | 3 | # Aztec Sequencer Node Kurulum Rehberi: 4 | 5 | Bu rehber, sadece birkaç adımda Aztec testnet ağı üzerinde Sequencer Node çalıştırmanızı ve Discord’da "Apprentice" rolü almanızı sağlar. Script desteklidir, her şey otomatik gerçekleşir. 6 | 7 | ## Sistem Gereksinimleri 8 | 9 | | Gereksinim | Detaylar | 10 | |----------------------|------------------------------------------| 11 | | RAM | En az 16 GB | 12 | | CPU | 8 Çekirdek | 13 | | İşletim Sistemi | Ubuntu 22.04 veya üzeri | 14 | | Depolama | 1TB SSD | 15 | 16 | ## Sunucu Önerisi: 17 | 18 | **Uzun Vade Çalıştıracaklar İçin:** 19 | - [Contabo 8 Core VPS](https://contabo.com/en/vps/cloud-vps-8c/?image=ubuntu.332&qty=1&contract=12&storage-type=vps-8-cores-400-gb-ssd) 20 | 21 | **Rol Alamk İçin Çalıştıracaklar İçin:** 22 | - [Contabo 6 Core VPS](https://contabo.com/en/vps/cloud-vps-6c/?image=ubuntu.332&qty=1&contract=12&storage-type=vps-6-cores-200-gb-ssd) 23 | 24 | ## Kurulum Öncesi Gereklilikler 25 | 26 | - Yeni bir MetaMask cüzdanı oluşturun. 27 | - Sepolia Test ETH alın: https://www.alchemy.com/faucets 28 | - Sepolia RPC alın: https://dashboard.alchemy.com 29 | - Beacon (Consensus) RPC alın: https://chainstack.com/global-nodes 30 | 31 | ![image](https://github.com/user-attachments/assets/d4910a1b-d47c-4252-ae15-5dbcbaa15396) 32 | 33 | ## 1- Docker'sız Node Kurulumu: 34 | 35 | Aşağıdaki komutu VPS'e girdikten sonra çalıştırın: 36 | 37 | ```bash 38 | [ -f "script.sh" ] && rm script.sh; apt update -y && apt install curl -y && curl -sSL -o script.sh https://raw.githubusercontent.com/UfukNode/aztec-sequencer-node/refs/heads/main/script.sh && chmod +x script.sh && ./script.sh 39 | ```` 40 | 41 | ### Script sizden şu bilgileri isteyecek: 42 | 43 | * Sepolia RPC URL 44 | * Beacon (Consensus) URL 45 | * Private Key (**başında 0x olmadan**) 46 | * Wallet Address (**0x ile başlayan**) 47 | 48 | Kurulum tamamlandığında node `aztec` isimli bir screen oturumunda çalışmaya başlar. 49 | 50 | ## 2- Screen Kullanımı 51 | 52 | Screen oturumundan çıkmak için: 53 | 54 | ``` 55 | CTRL + A ardından D 56 | ``` 57 | 58 | Tekrar bağlanmak için: 59 | 60 | ```bash 61 | screen -r aztec 62 | ``` 63 | 64 | 📌Screene gittiğinizde bir süre sonra aşağıdaki çıktıları almanız gerekiyor. 65 | ![image](https://github.com/user-attachments/assets/4ffaa38a-cf09-4991-a356-817588952619) 66 | 67 | ## 3- Discord "Apprentice" Rolü Alma 68 | 69 | Node 5 dakika çalıştıktan sonra aşağıdaki adımları izleyin: 70 | 71 | ### A- Block Numarası Al 72 | 73 | ```bash 74 | curl -s -X POST -H 'Content-Type: application/json' \ 75 | -d '{"jsonrpc":"2.0","method":"node_getL2Tips","params":[],"id":67}' \ 76 | http://localhost:8080 | jq -r ".result.proven.number" 77 | ``` 78 | 79 | Bu komut size bir block numarası verir. Not alın. 80 | 81 | ### B- Proof Al 82 | 83 | Aldığınız block numarasını aşağıdaki komuttaki "BLOCK" kısmındaki iki yere yazın: 84 | 85 | ```bash 86 | curl -s -X POST -H 'Content-Type: application/json' \ 87 | -d '{"jsonrpc":"2.0","method":"node_getArchiveSiblingPath","params":["BLOCK","BLOCK"],"id":67}' \ 88 | http://localhost:8080 | jq -r ".result" 89 | ``` 90 | 91 | ![blok (1)](https://github.com/user-attachments/assets/7a0694e9-8541-4331-a7f0-c33ba4266b8b) 92 | 93 | Gelen uzun çıktı proof’tur, hepsini kopyalayın. 94 | 95 | ### C- Discord Rolü Almak 96 | 97 | 1. [https://discord.gg/aztec](https://discord.gg/aztec) adresine katılın 98 | 2. `#operators > start-here` kanalına girin 99 | 3. Komutu yazın: 100 | 101 | ``` 102 | /operator start 103 | ``` 104 | 105 | 4. Sırasıyla: 106 | 107 | * Wallet adresinizi 108 | * Block numaranızı 109 | * Proof çıktısını girin 110 | 111 | ![Gp9h5y5WAAAV3eo](https://github.com/user-attachments/assets/ee1e114a-ef28-43c4-80cb-c81881b69de3) 112 | 113 | ## 4- Validator Kaydı (Opsiyonel) 114 | 115 | Node senkronize olduktan sonra aşağıdaki komutla validator olarak kayıt olabilirsiniz: 116 | 117 | ```bash 118 | bash -c "$(curl -fsSL https://raw.githubusercontent.com/UfukNode/aztec-sequencer-node/main/validator_kayit.sh)" 119 | ``` 120 | 121 | Script çalışırsa validator olarak kayıt olursunuz. Eğer günlük limit doluysa şu mesaj gösterilir: 122 | 123 | ``` 124 | ⚠ Günlük limit dolmuş olabilir. Lütfen ertesi gün tekrar deneyin. 125 | ``` 126 | 127 | --- 128 | 129 | ### 🔄 Güncelleme Talimatı 130 | 131 | Herhangi bir yeni Aztec sürüm güncellemesinde aşağıdaki adımları uygulayarak node’unuzu güvenli şekilde güncelleyebilirsiniz: 132 | 133 | #### 1. Screen’e Git ve Node’u Durdur 134 | 135 | ```bash 136 | screen -r aztec 137 | ``` 138 | 139 | Ekrana geçtikten sonra: 140 | ```bash 141 | CTRL + C 142 | ``` 143 | ile node’u durdurun. 144 | 145 | --- 146 | 147 | #### 2. Verileri Temizle 148 | 149 | Sadece veriyi temizlemeniz yeterlidir (config’ler silinmez): 150 | ```bash 151 | rm -rf ~/.aztec/alpha-testnet/data/ 152 | ``` 153 | 154 | --- 155 | 156 | #### 3. Node’u Yeniden Başlat 157 | 158 | Aşağıdaki kurulum komutunu tekrar çalıştırabilirsiniz: 159 | ```bash 160 | [ -f "script.sh" ] && rm script.sh; apt update -y && apt install curl -y && curl -sSL -o script.sh https://raw.githubusercontent.com/UfukNode/aztec-sequencer-node/refs/heads/main/script.sh && chmod +x script.sh && ./script.sh 161 | ``` 162 | 163 | --- 164 | 165 | Ulaşmak ve Sorularınız İçin: https://x.com/UfukDegen 166 | --------------------------------------------------------------------------------