# BluefinX

<figure><img src="https://1758625502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff0258RL5jITQsHj6Pm47%2Fuploads%2FAja8VtcojawbAmJrjtrH%2FBluefinXBanner.png?alt=media&#x26;token=65e0589e-3319-4b5f-b7c9-69ecffbce5e7" alt=""><figcaption></figcaption></figure>

Introducing **BluefinX!** Our newest product that will seamlessly connect Bluefin's Spot CLMM with a permissionless network of execution agents through protocol-controlled auctions to optimize transaction outcomes, enabling lower execution costs and better pricing for swaps performed on Bluefin.

### What is BluefinX and how does it work?

BluefinX is a permissionless **Request for Quote** (RFQ) system where multiple **Execution Agents** are able to bid on quotes and Bluefin is able to fetch the best bid to send to the user, creating an off-chain auction for these quotes before they get executed on-chain.&#x20;

What this means for users is that they will be inherently benefiting from **speed, MEV protection, no slippage and no gas fees** from BluefinX quotes, providing the best swap prices for different pairs across the Sui ecosystem.

<figure><img src="https://1758625502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff0258RL5jITQsHj6Pm47%2Fuploads%2FzQ8NgDQBgK4sXNNNuVtC%2Fimage.png?alt=media&#x26;token=d3db1b91-e5f7-4a17-9252-ea829815168a" alt="" width="563"><figcaption><p>Flow diagram of BluefinX swaps</p></figcaption></figure>

The diagram shown above outlines the flow for swaps performed through BluefinX, with each step described as follows:

1. Users input the amount of tokens they want to trade in Bluefin's swap UI.
2. The request is sent to the BluefinX API and the Execution Agents respond with their quotes for the requested amount.&#x20;
3. The best quote is selected and returned to the user.
4. User's will see the exact amount they'll receive from the swap, which will be **available for 10 seconds** before the quote refreshes.
5. If the user decides to swap and signs the transaction, the request is sent to the agents for final approval.
6. Finally, user's receive their tokens in the exact amount shown in the quote at the moment of signing the transaction. These funds will come from a vault smart contract directly funded by the Execution Agents.

### BluefinX tutorial

The experience for using BluefinX is pretty seamless and will follow the same flow for any traditional swap on an AMM. Simply go to <https://trade.bluefin.io/swap>, input the amount you want to swap and that's it! (you can also follow [this ](https://learn.bluefin.io/bluefin/bluefin-spot-clmm/tutorials/swapping)tutorial for a more detailed explanation on swapping).

When a swap is being performed through BluefinX you'll be able to see it in the bottom of the swap modal (shown below) on the selected **Order Route**, with **Zero Slippage** and **Zero Fees** being displayed besides the BluefinX logo. Initially, BluefinX will mainly support swaps on SUI-USDC, with more ecosystem pairs (DEEP, WAL, BLUE, etc.) being added in the coming weeks.&#x20;

<figure><img src="https://1758625502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff0258RL5jITQsHj6Pm47%2Fuploads%2FuT5HuRWGliwnXh5aoiJa%2Fimage.png?alt=media&#x26;token=214a0e20-5e9a-4d45-b072-94cdbfb6f57b" alt="" width="375"><figcaption></figcaption></figure>

You can also enter the **Settings** modal by clicking on the gear symbol in the top right corner of the swap screen. The default settings (shown below) will have both BluefinX and MEV protection enabled for all users.

<figure><img src="https://1758625502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff0258RL5jITQsHj6Pm47%2Fuploads%2FIvMFwz40E8WeSdqBxedH%2Fimage.png?alt=media&#x26;token=aadca302-cc3e-4cb9-9841-9b3e0745c518" alt="" width="375"><figcaption><p>Default Swap Settings</p></figcaption></figure>

Additionally, BluefinX swaps will not only benefit from having zero slippage and MEV protection but they will also be sponsored by Bluefin, meaning that user's **won't have to pay gas fees associated to these swaps**. After the swap is performed you'll be able to see a confirmation pop-up with the BluefinX logo, and if you go to Suivision to view the transaction details you'll be able to see that the gas fee has been sponsored by a third party.

<figure><img src="https://1758625502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff0258RL5jITQsHj6Pm47%2Fuploads%2FgmG9OAQy8hwZqsfvsLc0%2Fimage.png?alt=media&#x26;token=9e035891-f116-4080-9a59-8ccb6e0b1d9c" alt="" width="375"><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://learn.bluefin.io/bluefin/bluefin-spot-clmm/bluefinx.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.
