Skip to content

bbogdan95/tx-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Transaction Parser

A Go service that monitors Ethereum blockchain transactions for subscribed addresses in real-time.

Features

  • Monitor Ethereum blockchain transactions
  • Subscribe to specific Ethereum addresses
  • Real-time block processing
  • In-memory storage
  • RESTful API endpoints

Installation

git clone https://github.com/bbogdan95/tx-parser
cd tx-parser
make deps

Usage

Start the server:

make run

The server will start on port 8080.

API Endpoints

1. Get Current Block

  • Method: GET
  • Endpoint: /currentblock

2. Subscribe to an Address

  • Method: POST
  • Endpoint: /subscribe
  • Body:
{
  "address": "{address}"
}

3. Get Transactions for an Address

  • Method: GET
  • Endpoint: /transactions?address={address}

Available make commands:

  • make build - Build the project
  • make run - Run the service
  • make test - Run tests
  • make lint - Run linter
  • make clean - Clean build files
  • make deps - Install dependencies
  • make test-coverage - Run tests with coverage report
  • make update-deps - Update dependencies

TODO

  • Add configuration options
  • Add integration tests on sepolia
  • Add an endpoint to get all subscribed addresses
  • Add a health check endpoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published