A simple program able to listen to the pending transactions of the Ethereum mempool.
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 !
Make sure you've downloaded the required dependencies using :
go get ./
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
Made with ❤️ by 🤖 Luca Georges François 🤖