Content pfp
Content
@
https://warpcast.com/~/channel/base-seoul
0 reply
0 recast
0 reaction

Alex Kim pfp
Alex Kim
@alexkimr
#DailyChallenge Final Day21! Today i wanted to explore something related to attacks. so, it took me a while but I managed to write a piece of code that: - fetches transactions from each new block every 5 seconds. - Stores transaction history in a shared memory structure (HashMap). - Analyzes transactions for MEV patterns: 1. Sandwich attacks (detects if a bot front-runs and back-runs a victim's trade). 2. Front-running (detects if a bot submits a transaction with a higher gas price to execute first). - Prints alerts when MEV activity is detected. I wanted to use websocket for it, but I faced too many errors. so i decided to go with RPC. I'll probably continue with parsing this raw data into structured JSON tomorrow. Just for myself Thank you Base Seoul for this opportunity!
0 reply
0 recast
4 reactions