eth-mempool-listener-go

command module
v0.0.0-...-a31dc80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2022 License: MIT Imports: 9 Imported by: 0

README

eth-mempool-listener-go

A simple program able to listen to the pending transactions of the Ethereum mempool.

How does it work ?

It creates a set of clients to query the mempool from a node using the endpoint you've provided as an environment variable. Then, it converts the transaction to a readable message so that you can use its fields properly.

Take a look at the code and feel free to use it for your own needs !

Getting started !

Installation

Make sure you've downloaded the required dependencies using :

go get ./
Quickstart

Provide the node endpoint in a .envrc file or export it in the shell environment :

export NODE_ENDPOINT=RUN_YOUR_OWN_NODE_TO_IMPROVE_DECENTRALISATION_;)

Then, run :

go run main.go

Author

Made with ❤️ by 🤖 Luca Georges François 🤖

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳