Coder Social home page Coder Social logo

eth_crawler's Introduction

Ethereum transactions crawler task

Python GUI-based app

This is server-rendered app, located in python folder and there are multiple ways of running it in your local environment:

  1. Docker

In your terminal/console, navigate to python folder and create docker image:

docker build -t eth-crawler . 

When docker image is created, run it in isolated container environment with command:

docker run -p 5000:5000 eth-crawler

In your browser, open http://0.0.0.0:5000/app URL

  1. Install Python interpreter and its tools locally

Visit page https://www.python.org/downloads/ and follow the installation instructions

Install Python package installer, follow the instruction page https://pip.pypa.io/en/stable/installation/#get-pip-py

[Optional] You can also install virtual environment to isolate environment: https://virtualenv.pypa.io/en/latest/installation.html#via-pip

Once everything is installed, in your terminal/console, navigate to python folder of this project and run:

pip3 install -r requirements.txt

Above command downloads required modules and next is to run the app:

streamlit run app.py --server.runOnSave=true --server.address=0.0.0.0 --server.port=5000 --server.baseUrlPath=/app --server.enableCORS=true --ui.hideTopBar=true --ui.hideSidebarNav=true --theme.base=dark

In your browser, open http://0.0.0.0:5000/app URL

GUI tool has simple and clean UI. By providing ETH wallet, there are options to see all blocks and their transactions and also you can filter by date and starting blocks.

Rust CLI-based app

Based on your OS, follow instructions on how to install Rust locally: https://www.rust-lang.org/tools/install

After rust installation and cloning this repository to your local machine, navigate to rust/ethereum_crawler folder and build the project with command:

cargo build

After building is successful, target/debug folder is created, you can run created binary by running:

target/debug/ethereum_crawler --address 0xXXXXXXXXXXXXXXXXXX

or

cd target/debug/ && ./ethereum_crawler --address 0xXXXXXXXXXXXXXXXXXX

LI tool has option to filter by starting block:

target/debug/ethereum_crawler --address 0xXXXXXXXXXXXXXXXX -b 14234234

also listing of all CLI options:

target/debug/ethereum_crawler --help                                                          
ETH blockchain CLI explorer

Usage: ethereum_crawler [OPTIONS] --address <ADDRESS>

Options:
  -a, --address <ADDRESS>  The ETH address to examine
  -b, --block <BLOCK>      Starting examining block
  -h, --help               Print help information

If you want for CLI tool to absolutely print all transaction data(not very human readable), uncomment line 118 in src/main.rs file and build code again.

eth_crawler's People

Contributors

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