jcartes / eth-mempool-whale-watcher

listen for large ETH movements in the mempool of a local node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eth-mempool-whale-watcher

Screenshot

listen for large ETH movements in the mempool.

This task will monitor pending transactions and report all movements of ETH over a given threshold. I built this as a way to play around with geth but it may be useful as a tool for certain MEV strategies or for analytics.

Usage

docker

create a .env file in the root directory and set NODE_URL to a websocket enabed geth node url. (example: wss://eth-mainnet.alchemyapi.io/)

Then run

docker-compose up

local

NODE_URL=<websocket geth node url> go run main.go

Setting the threshold

the env var MONITOR_ETH_THRESHOLD (denominated in ETH) is checked first and used for the reporting threshold if possible. If absent a default value is used.

Contributing

While this is at the present a very simple tool, please feel free to suggest any changes or improvements, or open a PR.

About

listen for large ETH movements in the mempool of a local node


Languages

Language:Go 91.1%Language:Dockerfile 6.6%Language:Shell 2.3%