Krypto Kajun e99cd17956 feat: Fix critical Arbitrum transaction parsing and add DEX parameter extraction
BREAKING: Resolves "Block has unsupported transaction types" issue that prevented
MEV analysis by implementing raw RPC transaction parsing instead of go-ethereum.

Changes:
- Add ArbitrumL2Parser with raw RPC calls to bypass go-ethereum transaction type limitations
- Implement correct DEX function signatures for Arbitrum (38ed1739, 414bf389, ac9650d8, etc.)
- Add comprehensive swap parameter decoding (amounts, tokens, prices)
- Support Uniswap V2/V3, SushiSwap function detection
- Extract swap amounts for MEV arbitrage analysis
- Fix WebSocket + block polling dual monitoring system

Results:
-  Full transaction parsing (no more "unsupported transaction types")
-  DEX transactions detected with swap amounts
-  MEV analysis data: AmountIn, MinOut, protocol identification
-  Real-time processing: ~4 blocks/second with detailed transaction data

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-14 06:27:16 -05:00
2025-09-14 06:21:10 -05:00
2025-09-14 06:21:10 -05:00
2025-09-14 06:21:10 -05:00
2025-09-14 06:21:10 -05:00
2025-09-14 06:21:10 -05:00
2025-09-14 06:21:10 -05:00

MEV Bot

An MEV (Maximal Extractable Value) bot written in Go that monitors the Arbitrum sequencer for potential swap opportunities and identifies profitable arbitrage opportunities.

Overview

This bot monitors the Arbitrum sequencer for attempted swaps and analyzes them to determine if they are large enough to create price movements that can be exploited for arbitrage. It uses off-chain methods to calculate price movements using Uniswap V3 pricing functions.

Features

  • Real-time monitoring of Arbitrum sequencer
  • Detection of potential swap transactions
  • Market scanning for price movement analysis
  • Uniswap V3 pricing calculations (price to tick, sqrtPriceX96 to tick, etc.)
  • Arbitrage opportunity identification

Prerequisites

  • Go 1.24 or higher
  • Access to Arbitrum node

Installation

go mod tidy

Usage

go run cmd/mev-bot/main.go

Configuration

Configuration files can be found in the config/ directory.

Project Structure

.
├── cmd/                 # Main applications
├── config/              # Configuration files
├── internal/            # Private application and library code
├── pkg/                 # Library code that can be used by external projects
├── @prompts/            # AI prompts for development assistance
├── docs/                # Documentation
├── scripts/             # Scripts for building, testing, and deployment
├── go.mod               # Go module definition
├── go.sum               # Go module checksums
├── README.md            # This file
└── QWEN.md              # Qwen Code context file

Development

Prompts Directory

The @prompts/ directory contains prompts that can be used with AI coding assistants for various development tasks.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT

Description
mev-beta
Readme 1.5 GiB
Languages
Go 91.5%
Shell 8.1%
Makefile 0.4%