> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arqitech.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revenue Generation

> Collect affiliate fees from every trade facilitated through our SDK/API. Any project that implements the Arqitech Router can earn fees based on the volume they drive.

<div className="dk-hero">
  <div className="dk-btns">
    <a className="dk-btn" href="/api-reference/core-endpoints/get-quote">
      Try the Quote API
    </a>

    <a className="dk-btn" href="https://dkit-chi.vercel.app/">
      API Playground
    </a>
  </div>
</div>

## Start monetizing your dApp

There are 2 primary ways to monetize your application and earn fees:

<ul className="dk-list dk-list--stack">
  <li>
    <div className="dk-li">
      <span className="dk-li-icons">
        <img src="https://mintcdn.com/arqitech/4iodEdngcmNjAcve/logo/thorchain.png?fit=max&auto=format&n=4iodEdngcmNjAcve&q=85&s=2932cee0cb6b50febdcb4bc6dc40da39" alt="THORChain" width="2294" height="2294" data-path="logo/thorchain.png" />

        <img src="https://mintcdn.com/arqitech/4iodEdngcmNjAcve/logo/maya.png?fit=max&auto=format&n=4iodEdngcmNjAcve&q=85&s=0d48098330f27fe29fbbc7156ae00de4" alt="Maya" width="834" height="834" data-path="logo/maya.png" />

        <img src="https://mintcdn.com/arqitech/4iodEdngcmNjAcve/logo/chainflip.png?fit=max&auto=format&n=4iodEdngcmNjAcve&q=85&s=8eae91d2579f52a5379d58fe8b355eff" alt="Chainflip" width="336" height="329" data-path="logo/chainflip.png" />
      </span>

      <div className="dk-li-title">THORChain / Maya / Chainflip swaps</div>
      <div className="dk-li-desc">Direct cross-chain protocol fees via THORName, Maya node, or Chainflip Broker.</div>
    </div>
  </li>

  <li>
    <div className="dk-li">
      <span className="dk-li-icons">
        <img src="https://mintlify.s3.us-west-1.amazonaws.com/arqitech/logo/1inch.png" alt="1inch" />

        <img src="https://mintcdn.com/arqitech/4iodEdngcmNjAcve/logo/jupiter.png?fit=max&auto=format&n=4iodEdngcmNjAcve&q=85&s=0bfedb1d33d8fd8c60a0a1eab4fb0c25" alt="Jupiter" width="512" height="512" data-path="logo/jupiter.png" />

        <img src="https://mintcdn.com/arqitech/4iodEdngcmNjAcve/logo/chainflip.png?fit=max&auto=format&n=4iodEdngcmNjAcve&q=85&s=8eae91d2579f52a5379d58fe8b355eff" alt="Chainflip" width="336" height="329" data-path="logo/chainflip.png" />
      </span>

      <div className="dk-li-title">DEX aggregation swaps</div>
      <div className="dk-li-desc">Cross-chain DEX aggregation revenue using your affiliate address.</div>
    </div>
  </li>
</ul>

***

## Fee Earning Overview

<div className="dk-scroll dk-scroll--tight">
  <table className="dk-table dk-table--center dk-table--tight">
    <thead>
      <tr>
        <th>Type</th>
        <th>Revenue Source</th>
        <th>Setup Required</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>THORChain / Maya / Chainflip</td>

        <td>
          <span className="dk-chip">Direct cross-chain protocol fees</span>
        </td>

        <td>
          <div className="dk-badges dk-badges--center">
            <span className="dk-chip">THORName</span>
            <span className="dk-chip">Maya node</span>
            <span className="dk-chip">Chainflip Broker</span>
          </div>
        </td>
      </tr>

      <tr>
        <td>DEX Aggregation Swaps</td>

        <td>
          <span className="dk-chip">Cross-chain DEX aggregation revenue</span>
        </td>

        <td>
          <span className="dk-chip">Affiliate address setup</span>
        </td>
      </tr>
    </tbody>
  </table>
</div>

## Implementation Setup

When fetching trade quotes through our SDK, you can configure:

<div className="dk-scroll dk-scroll--tight">
  <table className="dk-table dk-table--center dk-table--tight">
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Description</th>
        <th>Format</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>
          <span className="dk-chip">Affiliate Address</span>
        </td>

        <td>Your designated affiliate address</td>

        <td>
          <span className="dk-chip">Wallet address</span>
        </td>
      </tr>

      <tr>
        <td>
          <span className="dk-chip">Fee Percentage</span>
        </td>

        <td>Your commission rate</td>

        <td>
          <span className="dk-chip">Basis points (e.g., 100 = 1%)</span>
        </td>
      </tr>
    </tbody>
  </table>
</div>

<Tabs>
  <Tab title="JavaScript">
    ```ts theme={null}
    import { getQuote } from "@dkit/sdk";

    const quote = await getQuote({
      sellAsset: "ETH.ETH",
      buyAsset: "BTC.BTC",
      sellAmount: "1",
      affiliate: {
        address: "YOUR_AFFILIATE_ADDRESS",
        bps: 75, // 0.75%
      },
    });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST https://api.dkit.xyz/quote \
      -H 'content-type: application/json' \
      -d '{
        "sellAsset":"ETH.ETH",
        "buyAsset":"BTC.BTC",
        "sellAmount":"1",
        "affiliate":{"address":"YOUR_AFFILIATE_ADDRESS","bps":75}
      }'
    ```
  </Tab>
</Tabs>

***

## How It Works

<ol className="dk-flow">
  <li>Earn fees from swaps executed through your front-end / dApp / wallet.</li>

  <li>
    Your affiliate address is tied to a THORName / Maya node or Chainflip
    broker.
  </li>

  <li>
    Fees can be sent automatically to your chosen address in RUNE, CACAO, or
    even USDC.
  </li>
</ol>

***

## Setting up a THORName

<Steps>
  <Step title="Register THORName">
    <p>Create your THORName to receive protocol-native fees.</p>
  </Step>

  <Step title="Link Wallet Addresses">
    <p>Attach BTC, ETH, and other chains to your THORName.</p>
  </Step>

  <Step title="Configure SDK">
    <p>
      Set <code>affiliate.address</code> and <code>affiliate.bps</code> in your
      quote requests.
    </p>
  </Step>

  <Step title="Start Collecting Fees">
    <p>Fees accrue automatically; monitor in your analytics.</p>
  </Step>
</Steps>

<Tip>
  <strong>Pro Tip: THORName Optimization</strong>

  <br />

  Keep your THORName 3 characters or shorter. THORChain transactions include
  affiliate names in the memo field; shorter names avoid issues on BTC/UTXO
  chains with \~80-character limits.
</Tip>

***

## DEX Aggregation Swaps

**What’s covered.** Cross-chain movements like ARC20/ERC20/SPL to assets on another blockchain.
Examples: Arbitrum → Solana (ARC20 → SPL), Ethereum → Bitcoin (ERC20 → BTC), Solana → Arbitrum (SPL → ARC20).

**Revenue Generation**

* Generate revenue from cross-chain swaps utilizing DEX aggregation.
* Includes swaps moving in and out of Chainflip, THORChain and Maya Protocol.
* Automatic revenue collection available.

***

## Perfect For

* Cross-chain DEX protocols
* Multi-chain wallets
* DeFi aggregators
* Trading apps / dApps
* NFT marketplaces

## Questions?

Want to start monetizing your dApp? Reach out to our team on Telegram and we’ll get you started with personalized onboarding and technical support!
