GithubHelp home page GithubHelp logo

base-node's Introduction

Base Node Kurulum Rehberi

image

Base Node

Merhaba Base Node kurulum rehberi
<< Hercules >>

🟢 Ön bilgi

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.

Linkler

🟢 Sistem özellikleri

Gereksinimler:

  • 16 GB RAM
  • 100 GB Yer

🟢 Sistem Güncelleme

sudo apt update
sudo apt upgrade

🟢 Docker Setup

apt install docker-compose
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



🟢 1. Base Dosyalarını Klonlayalım.

git clone https://github.com/base-org/node.git

🟢 2.Screen Oluşturalım

screen -S base

🟢 3.Base Klasörüne Giriş yapalım

cd node

🟢 4. Compose dosyasını düzenleyelim

docker-compose.yml dosyasına giriş yapacağız ve buraya sadece ETH-Goerli RPC ekleyeceğiz bunu ben Blockpi kullanıyorum. isteyen burdan kayıt olup alabilir. Resimdeki gibi alacaksınız. https://blockpi.io/

image



Değiştireceğimiz yer : OP_NODE_L1_ETH_RPC=https://ethereum-goerli-rpc.allthatnode.com
Burada almış olduğunuz RPC ile değiştirin ve ctrl + x ile kaydedin.

nano docker-compose.yml

image

🟢 5.Sistemi başlatalım


bu işlem biraz sürecek bekleyin. Resimdeki gibi bir çıktı alacaksınız.

docker compose up

image

işlemler bittikten sonra bu şekilde bir log göreceksiniz Senkronize oluyor . Şimdilik bu kadar

image


🟢 Yararlı komutlar

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.

curl -d '{"id":0,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false]}' \
  -H "Content-Type: application/json" http://localhost:8545

image


Senkronizasyon ilerlemesine bakma komutu ana dizinde yapın base screen içinde yapmayın ctrl + a + d ile çıkaiblirsiniz.

echo Latest synced block behind by: $((($(date +%s)-$( \
  curl -d '{"id":0,"jsonrpc":"2.0","method":"optimism_syncStatus"}' \
  -H "Content-Type: application/json" http://localhost:7545 | \
  jq -r .result.unsafe_l2.timestamp))/60)) minutes

Forklamayı ve beğenmeyi unutmayınız :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.