Giter Site home page Giter Site logo

pacman809 / ethereum-snapshot Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 0.0 18.72 MB

Takes a snapshot of all know positive balances and tokens on a given block. Also checks MongoDB for missing blocks prior to snapshot. Also used as a richlist. Works for ETH and any ethereum based blockchain using GETH.

License: GNU General Public License v2.0

Python 100.00%
ethereum blockchain richlist python3 python geth-node geth pymongo mongodb

ethereum-snapshot's Introduction

Ethereum-Snapshot Takes a snapshot of all known wallets with balances and tokens on a given block. Also checks MongoDB for missing blocks prior to snapshot. Also used as a richlist. Works for any Geth/ETH Based BlockChain.

Pre-Requisites

  • MongoDB populated with block, token and transaction data ethereumetl works great for this
  • Fully Indexed Collections (Blocks + Transactions)
  • Geth node (Archived)
  • Python 3
  • pip installed for packages

INSTALL

check Requirements.txt Enter commands

pip install -r requirements.txt

pip freeze > requirements.txt

edit config.py accordingly

-run python FindMissing.py (Optional) Finds missing blocks in Chain. Gather all missing blocks and add to DB before continuing. Takes A long time depending on block height. approx 1 hr for 5M blocks

-run python3 snapIt.py To export the file to CSV run this python3 snapit.py > outputfile.csv

If using a Python3 environment python is fine

Garth Madden TheNorthWatch.com [email protected]

Use at own risk.

ethereum-snapshot's People

Contributors

pacman809 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.