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

# Monetization

You can monetize your SwapKit integration and collect fees.

To monetize your integration, follow the steps below to register and set up your affiliate configuration.

### Step 1: Register in the SwapKit Partner's Dashboard

You can register yourself at [SwapKit's dashboard](https://dashboard.swapkit.dev/) and have your API key ready to use.\
If you need help through the process you can [contact us here](https://partnerships.swapkit.dev/) and schedule a short call with us.

### Step 2: Create an app and configure 2FA

Create an app and enter the `Affiliate Config` . You will be prompted to activate two-factor authentication, which is needed before you can set up affiliate configuration.

<figure><img src="https://1967725871-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl88kbsjWGhgdARxzgqCE%2Fuploads%2FB3cTVdiOaGdVK1oiN2JR%2Fimage.png?alt=media&amp;token=ecdc5326-9760-4429-8568-677889ded030" alt="" width="563"><figcaption></figcaption></figure>

To use 2FA you will need an authenticator application. You should also store the recovery codes shown in case you lose access to your authenticator application.

### Step 3: Configure the app's general fee tiers

General configuration allows you to set default fee tiers for all the different swap providers. It has settings for value ranges and the option to set up a specific fee tier for stablecoin swaps.

<figure><img src="https://1967725871-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl88kbsjWGhgdARxzgqCE%2Fuploads%2FBxR9TYj9hcQ4me1ulqMh%2Fimage.png?alt=media&amp;token=d9345731-0dc8-407b-b6a5-6009aa0cc064" alt="" width="563"><figcaption></figcaption></figure>

### Step 4: Configure provider specific settings

For each swap provider, you need to setup an address to collect the fees. You can use the same address for all of them but you need to register accordingly for each provider. The exception is **Mayan**, which takes one address per chain type — an EVM and a Solana address are required, Sui is optional — and pays each fee to whichever one matches the route.

You can also define specific **affiliate fee tiers** in each provider configuration. These will override the general fee tiers.

### Step 5: Monetize API requests

When making requests to the `/v3/quote` endpoint, use the **`x-api-key`** header with the generated API key. The affiliate fee tier will be applied automatically, ensuring you earn the configured fees for each transaction.

There is no need to pass the specific affiliate settings when requesting a quote if it is already set up using our dashboard, but passing them will override any settings you have set up on the dashboard.

***

### Fee collection by provider

The `affiliateFee` you set on `/v3/quote` (or via the dashboard fee tiers) controls how much is charged per swap. This section covers what happens to those fees *after* they are charged.

SwapKit collects your fees and sends them to you automatically across all providers — you don't need to interact with any provider directly. What varies by provider is **the asset your fees are paid in**, and **whether they're automatically converted to a preferred asset** (only THORChain and Maya do this). The sections below cover each one.

| **THORChain**    | RUNE                                                                                                                                                           | Yes — auto-converts to your preferred asset (THORName); else RUNE             |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| **Maya**         | CACAO                                                                                                                                                          | Yes — auto-converts to your preferred asset (MAYAName); else CACAO            |
| **NEAR Intents** | The asset being swapped (varies per swap)                                                                                                                      | No — paid in the asset earned                                                 |
| **Jupiter**      | The swap's token (varies)                                                                                                                                      | No — paid in the asset earned                                                 |
| **1inch**        | The swap's token (varies)                                                                                                                                      | No — paid in the asset earned                                                 |
| **Garden**       | USDC (on Ethereum)                                                                                                                                             | No — paid in USDC                                                             |
| **Chainflip**    | USDC                                                                                                                                                           | No — paid in USDC                                                             |
| **Flashnet**     | USDC (on Solana)                                                                                                                                               | No — paid in USDC                                                             |
| **Mayan**        | Varies by route — the token you receive or the token you sold, paid to whichever of your configured addresses (EVM, Solana, Sui) matches the chain it lands on | No — Mayan distributes whatever token accrued to those addresses periodically |

***
