# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blocksec.com/blocksec-anti-mev-rpc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
