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

# How-to: Collect custom swap fees

> Configure custom fees to collect on token swaps

You can configure your swaps to collect a custom fee from end users on each swap
call. For how custom fees fit into the overall fees breakdown, see
[How swap fees work](/app-kit/concepts/swap-fees).

<Note>
  If you use this feature, Arc keeps 10% of the custom fee you collect from your
  end users.
</Note>

## Prerequisites

Before you begin, ensure that you've:

* [Installed the App Kit SDK](/app-kit/tutorials/installation)
* [Configured an adapter](/app-kit/tutorials/adapter-setups)

These are required so any example below runs with a valid `kit` and `adapter`.

## Set a custom fee on a swap

This example adds a 1% (100 basis points) fee to a single swap call:

```typescript TypeScript theme={null}
const output = await kit.swap({
  from: { adapter, chain: "Arc_Testnet" },
  tokenIn: "USDC",
  amountIn: "1.00",
  tokenOut: "EURC",
  config: {
    kitKey: process.env.KIT_KEY as string,
    customFee: {
      percentageBps: 100, // 1% fee
      recipientAddress: "0xYourFeeRecipientAddress",
    },
  },
});
```
