Skip to content
Discussion options

You must be logged in to vote

Connect to WS or mempool feed, filter pending transactions for router contract addresses and decode input data to detect swaps. Maintain a short cache of leader tx hashes and filter by to (router), function sigs, and token addresses. Prioritize by gasPrice / maxPriorityFee + maxFee.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jackhuang166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants