Giter Site home page Giter Site logo

base-node-english-guide's Introduction

image

Base Node

Base Node installation guide
<< Hercules >>

🟢 information

There is no incentive for Base Node. Base is a Coinbase Brand, so I think every transaction is important.

link

🟢 Hardware requirements

  • at least 16 GB RAM
  • an SSD drive with at least 100 GB free

1️⃣ System Update

sudo apt update
sudo apt upgrade

2️⃣ 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



3️⃣ Clone Base Files.

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

4️⃣ Screen create

screen -S base

5️⃣ Base directory

cd node

6️⃣ Let's edit the Compose file

We will log in to the docker-compose.yml file and add only ETH-Goerli RPC here.



Modify this field : OP_NODE_L1_ETH_RPC=https://ethereum-goerli-rpc.allthatnode.com
Replace it with the RPC you received here and save with ctrl + x.

nano docker-compose.yml

image

7️⃣ Let's start our node.


this process will take a while, wait. You will get a printout like in the picture.

docker compose up --build

image

After the operations are finished, you will see a log in this way Synchronising. That's it for now

image

🟢 v0.2.0 Update

docker-compose stop
docker-compose build
docker-compose up

🟢 Useful commands

After doing docker compose up , come to the main directory. Do not do it in Screen. Enter the command below and you should get output as in the picture.

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

image


Do the command to look at the synchronisation progress in the main directory, do not do it in the base screen, you can exit with ctrl + a + d.

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

don't forget to like and Fork :)

base-node-english-guide's People

Contributors

herculesnode avatar

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.