provider.mev_blocker

Documentation for eth_defi.provider.mev_blocker Python module.

MEV blocking RPC provider functionality.

Malicious Extractable Value (MEV) is a problem for all trading activity on EVM-based blockchains.

It can be mitigated by using a special JSON-RPC node that provides a private mempool.

This module provides methods to create special web3.Web3 instances that

  • Use MEV blocking JSON-RPC endpoint for all transactions

  • Normal JSON-RPC node for reading data from the blockchain

Module Attributes

TRANSACT_METHODS

List of RPC methods that execution transactions

Classes

MEVBlockerProvider

Routes methods that execute transaction through a special MEV proof endpoint.