Git Product home page Git Product logo

eth-parser's Introduction

✨ Ethereum Block Parser ✨

This project implements a simple tool for parsing Ethereum blockchain data. It enables to store blocks and USDC transfer transactions inside SQLite database.

Table of Contents

Features

  • Block parsing: Extract all important data from blocks
  • USDC Transfer transaction parsing: Extract all transactions details

Getting Started

Prerequisites

Make sure you have Go installed on your machine. You can download it from here.

Installation

  1. Clone the repository:
git clone https://github.com/MonikaCat/eth-parser.git
cd eth-parser
  1. Install dependencies:
make install
  1. Initialise working directory and config.yaml file
eth-parser init
  1. Update values inside config.yaml file
nano ~/.eth-parser/config.yaml

The default config.yaml file should look like the following

node:
  rpc_url: http://localhost:8545    # Update RPC address to ETH mainnet address
database:
  dns: /Users/test/test.db          # Update value to your SQLite DNS
  max_open_connections: 20
  max_idle_connections: 10

Prepare Database:

Run the command below in your terminal to prepare database and create tables

eth-parser prepare-database

Start Application:

To parse given block details and txs run the command below

eth-parser parse 20361785

Testing

To test the code run:

cd eth-parser
make test-unit

Available Commands:

help              Help about any command
init              Initialise config.yaml file
prepare-database  Prepare database and create tables
parse             Parse and indexing the block and USDC transfer transactions
version           Display the version of the application

eth-parser's People

Contributors

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