└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Base Node Kurulum Rehberi 2 | ![image](https://user-images.githubusercontent.com/101635385/224575552-0347013d-400d-44a0-8ea7-955bb2fde062.png) 3 | 4 | 5 |

Base Node

6 |

Merhaba Base Node kurulum rehberi
<< Hercules >> 7 |

8 | 9 | ## 🟢 Ön bilgi 10 | 11 | Base Node için herhangi bir teşvik yoktur isteyen kurabilir. Base bir Coinbase Markasıdır bu yüzden yapılacak her işlem önemli olduğunu düşünüyorum.
12 | 13 | 14 | ### Linkler 15 | * [Hercules Node Telegram](https://t.me/HerculesNode) 16 | * [Hercules Twitter](https://twitter.com/Hercules4413) 17 | * [Base Dc](https://discord.gg/buildonbase) 18 | 19 | ## 🟢 Sistem özellikleri 20 | 21 | Gereksinimler: 22 | - 16 GB RAM 23 | - 100 GB Yer 24 | 25 | 26 | ## 🟢 Sistem Güncelleme 27 | ```shell 28 | sudo apt update 29 | ``` 30 | 31 | ```shell 32 | sudo apt upgrade 33 | ``` 34 | 35 | 36 | ## 🟢 Docker Setup 37 | 38 | ```shell 39 | apt install docker-compose 40 | ``` 41 | 42 | ```shell 43 | 44 | sudo apt-get update && sudo apt install jq && sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin && sudo apt-get install docker-compose-plugin 45 | 46 | ``` 47 |

48 | 49 | #### 🟢 1. Base Dosyalarını Klonlayalım. 50 | 51 | ``` 52 | git clone https://github.com/base-org/node.git 53 | ``` 54 | 55 | #### 🟢 2.Screen Oluşturalım 56 | ``` 57 | screen -S base 58 | ``` 59 | 60 | #### 🟢 3.Base Klasörüne Giriş yapalım 61 | ``` 62 | cd node 63 | ``` 64 | 65 | #### 🟢 4. Compose dosyasını düzenleyelim 66 | 67 | docker-compose.yml dosyasına giriş yapacağız ve buraya sadece ETH-Goerli RPC ekleyeceğiz bunu ben Blockpi kullanıyorum. 68 | isteyen burdan kayıt olup alabilir. Resimdeki gibi alacaksınız. 69 | https://blockpi.io/ 70 | 71 | ![image](https://user-images.githubusercontent.com/101635385/224577347-9efa6881-6fde-42cd-843b-9378cb0bcd05.png) 72 | 73 | 74 | 75 | 76 |

77 | Değiştireceğimiz yer : OP_NODE_L1_ETH_RPC=`https://ethereum-goerli-rpc.allthatnode.com` 78 |
79 | Burada almış olduğunuz RPC ile değiştirin ve ctrl + x ile kaydedin. 80 | 81 | 82 | ``` 83 | nano docker-compose.yml 84 | ``` 85 | 86 | ![image](https://user-images.githubusercontent.com/101635385/224575903-f8e376ab-e7ff-42c9-bd11-3518a35e2092.png) 87 | 88 | 89 | 90 | #### 🟢 5.Sistemi başlatalım 91 | 92 |
93 | 94 | bu işlem biraz sürecek bekleyin. Resimdeki gibi bir çıktı alacaksınız.
95 | 96 | ``` 97 | docker compose up 98 | ``` 99 | 100 | ![image](https://user-images.githubusercontent.com/101635385/224575974-59704a03-6f97-4831-9461-03fee8d00793.png) 101 | 102 | 103 | işlemler bittikten sonra bu şekilde bir log göreceksiniz Senkronize oluyor . Şimdilik bu kadar 104 | 105 | ![image](https://user-images.githubusercontent.com/101635385/224576077-60d2aae7-5dbc-42a5-8881-42e7a29afb62.png) 106 | 107 | 108 |
109 | 110 | #### 🟢 Yararlı komutlar 111 | 112 | 113 | docker compose up yaptıktan sonra ana dizinde screen içinde değil aşağıdaki komutu girin ve resimdeki gibi çıktı almanız gerekiyor. 114 | 115 | ``` 116 | curl -d '{"id":0,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false]}' \ 117 | -H "Content-Type: application/json" http://localhost:8545 118 | ``` 119 | ![image](https://user-images.githubusercontent.com/101635385/224576325-64d53939-3ea7-4527-84b9-e9f8f0aec477.png) 120 | 121 |
122 | 123 | 124 | Senkronizasyon ilerlemesine bakma komutu ana dizinde yapın base screen içinde yapmayın ctrl + a + d ile çıkaiblirsiniz. 125 | 126 | ``` 127 | echo Latest synced block behind by: $((($(date +%s)-$( \ 128 | curl -d '{"id":0,"jsonrpc":"2.0","method":"optimism_syncStatus"}' \ 129 | -H "Content-Type: application/json" http://localhost:7545 | \ 130 | jq -r .result.unsafe_l2.timestamp))/60)) minutes 131 | ``` 132 | 133 | 134 | Forklamayı ve beğenmeyi unutmayınız :) 135 | --------------------------------------------------------------------------------