> For the complete documentation index, see [llms.txt](https://docs.intents.aurora.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intents.aurora.dev/intents-swap/what-is-swap-widget.md).

# What is Swap Widget?

The **Intents Swap Widget** lets you integrate a fully functional, cross-chain swap interface into your application in just a few lines of code.

<figure><img src="https://387686700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLp9IVb8Xkubcbzzk80Br%2Fuploads%2Fi3g0lfcF6ii8cSg30FOM%2Fswap-widget-2.png?alt=media&amp;token=06091e62-b14a-4fde-9d82-8c1b6e4733bb" alt=""><figcaption></figcaption></figure>

## Features

### Networks

Select which blockchains are available in the widget.

* Supports multiple chains for cross-chain swaps
* Enable or disable networks with one click
* Network selection directly impacts routing and liquidity

Use this to focus the widget on specific ecosystems or supported chains.

### Tokens

Control which tokens users can trade.

* Define a shared token list across all selected networks
* Set a default sell token (e.g. USDT)
* Restrict tokens to simplify UX or guide usage

### Wallet Connection

Choose how users connect wallets.

* Standalone: built-in wallet support, works out of the box
* Dapp: uses your existing wallet connection

Use Standalone for simplicity, Dapp for full control.

### Fee Collection

Earn fees from swaps.

* Enable custom fees on top of protocol fees
* Configure per API key
* Automatically applied to each transaction

### Design

Styl&#x65;**:** Customise the visual appearance.

* Clean or Bold themes
* Adjustable colours (accent, background, states)

Layou&#x74;**:** Adjust structure and spacing.

* Corner radius options
* Toggle container wrapper

### Embedding

#### iFrame

* One-line integration using a generated link
* Works in any app, no framework required

#### React SDK

* Full control via code
* Configure behaviour, wallets, and UI dynamically

### API Keys

Manage widget instances and settings.

* Each key controls configuration and fees
* Create multiple keys for different use cases
* Safe to rotate or revoke

### Reports

Export and analyse usage.

* Download transaction history as CSV
* Filter by date range
* Track volume and fee revenue

## Next Steps

{% stepper %}
{% step %}

### Create API key

First, create an account and set up [API Keys & Fees](/getting-started/api-keys-and-fees.md) for your integration.
{% endstep %}

{% step %}

### Integrate the widget

Go to [Widget integration](/intents-swap/widget-integration.md) page.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.intents.aurora.dev/intents-swap/what-is-swap-widget.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
