Skip to content

LanDeleih/ethereum-parser

Repository files navigation

Parser

A blockchain parser that allows querying transactions for subscribed addresses. This implementation follows a clean architecture approach to facilitate future extension and maintenance.

Usage example

Subscribe to an Address

To subscribe to an address, use the following command:

curl -X POST http://localhost:8080/apis/v1/subscribe --data '{"address": "0x5ea0b5899e912e0b0ba0190dd097251dbdaa70e0"}'

Get Transactions for a Specified Address

To retrieve all transactions for a specified address, use this command:

curl -X POST http://localhost:8080/apis/v1/transactions --data '{"address": "0x5ea0b5899e912e0b0ba0190dd097251dbdaa70e0"}'

Get Current Block

To obtain the current block, use the following command:

curl -X POST http://localhost:8080/apis/v1/block/current"

Planned Improvements

  • Add graceful shutdown for the application.
  • Improve error handling.
  • Enhance the transaction fetcher.
  • Add websockets to send updates.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published