Skip to content

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

License

Notifications You must be signed in to change notification settings

0xpanoramix/eth-mempool-listener-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 🤖

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages