# 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="https://2319654293-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxbNGlBc5Kji1KaYLlhe%2Fuploads%2F4EWqHpvKURjdFqXlAVoT%2Fimage.png?alt=media&#x26;token=726691d1-fa4e-4ebe-b677-f783a2ef98d8" alt="" width="375"><figcaption></figcaption></figure>

Step 2: Edit the network

<figure><img src="https://2319654293-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxbNGlBc5Kji1KaYLlhe%2Fuploads%2FewBrfJ9ZDIlSf86ALbxw%2Fimage.png?alt=media&#x26;token=a373e099-45c6-44b5-bd2c-91eea986001a" alt="" width="358"><figcaption></figcaption></figure>

Step 3: Click to add the RPC URL

<figure><img src="https://2319654293-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxbNGlBc5Kji1KaYLlhe%2Fuploads%2FC26Ka6UoIjNH7ipyFkyv%2Fimage.png?alt=media&#x26;token=d3c9a6c4-3565-4ef6-99d1-ae2fdc44f190" alt="" width="355"><figcaption></figcaption></figure>

<figure><img src="https://2319654293-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxbNGlBc5Kji1KaYLlhe%2Fuploads%2FtikcmZzdhgpGj0AXYVhl%2Fimage.png?alt=media&#x26;token=0496af3e-c865-4c2d-a945-f2f1505a91d2" 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="https://2319654293-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxbNGlBc5Kji1KaYLlhe%2Fuploads%2FtmY2S8j8zTRteoWleUS5%2Fimage.png?alt=media&#x26;token=39192bbb-ec51-4627-aca8-370320124354" alt="" width="358"><figcaption></figcaption></figure>
