> For the complete documentation index, see [llms.txt](https://docs.blocksec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blocksec.com/blocksec-anti-mev-rpc.md).

# BlockSec Anti-MEV RPC

The "sandwich attack" is one of the most common frontrunning methods in the DeFi space, where attackers place two transactions around a trader's swap order on a DEX, aiming to manipulate asset prices through this sandwiching approach, causing the trader to incur asset losses.

To address this, BlockSec has launched an MEV protection RPC, safeguarding users' DeFi journey.

{% hint style="info" %}
**RPC Endpoints**

* **Ethereum: <https://eth.rpc.blocksec.com>**
* **BSC:** **<https://bsc.rpc.blocksec.com>**
  {% endhint %}

## Wallet Users

Users need to add the corresponding RPC endpoints into their wallets to use these RPC endpoints. In the following, we will show the steps for some popular wallets.

### MetaMask

Step 1: click on the top left to show the networks.

<figure><img src="/files/nxxxOGNx0mDnVYyiqlpc" alt="" width="375"><figcaption></figcaption></figure>

Step 2: Edit the network

<figure><img src="/files/JVweNy7E4weFMJoSzxTN" alt="" width="358"><figcaption></figcaption></figure>

Step 3: Click to add the RPC URL

<figure><img src="/files/aHKzkiRgmjEHDmzCa19V" alt="" width="355"><figcaption></figcaption></figure>

<figure><img src="/files/Wg3NN00tDzT56VJoOVqN" alt="" width="361"><figcaption></figcaption></figure>

Input `https://bsc.rpc.blocksec.com`for BSC (or `https://eth.rpc.blocksec.com`for Ethereum).&#x20;

Ensure that the default RPC URL is the one we just set.&#x20;

<figure><img src="/files/ueiHcyYdXNGtAgUAaDeD" alt="" width="358"><figcaption></figcaption></figure>
