Giter Club home page Giter Club logo

docker-evm-nodes's Introduction

Run ethereum, arbitrum, polygon, bsc and more evm node in docker

This repo helps you to quickly deploy nodes in any linux env

All data will be store in /data folder

You should mount or link /data folder to a large ssd drive

Start geth

cd geth
bash setup.sh
docker compose up -d

Start polygon

You must start geth first, and synced up to date

cd polygon
#If you want to setup with downloading snapshot, do this:
DOWNLOAD_SNAP=true bash setup.sh
# no snapshot downloading
bash setup.sh
docker compose up -d

Start arbitrum

You must start geth first, and synced up to date

cd arbitrum
bash setup.sh
docker compose up -d

update tags frequently

yarn
node updateTag.js
docker compose up -d

Start Optimism

This is not tested. check the files in optimism folder.

Start erigon full arhive node for ethereum mainet

cd erigon-mainet
bash setup.sh
docker compose up -d

useful debug commands

#attach geth
docker exec -it ethereum geth attach
eth.syncing

  # check syncing:
curl 'localhost:8945' --header 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}'
curl 'localhost:8945' --header 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":2}'

if "Synchronisation failed, retrying" happens, need to restart node

docker-evm-nodes's People

Contributors

z-hao-wang avatar

Stargazers

Caijiji avatar Aiden avatar Chengjie Hu avatar

Watchers

 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.