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

# Collect fees

> Keep a developer fee on swaps

Custom fees let your app keep a developer fee on token swaps, including cross-chain swaps. The fee is captured at the infrastructure layer as part of the swap your app already runs, so there is no separate billing system to build. Users see the full cost, including the fee, in the quote before a swap executes.

Privy also supports custom fee structures for cross-chain swaps, including negotiated fee caps and revenue sharing arrangements.

<Note>
  Custom fees for swaps are in early access. Contact [sales@privy.io](mailto:sales@privy.io) to
  enable them for your app and set your fee recipient.
</Note>

## How it works

Once custom fees are enabled, set a total fee cap with the `fee_configuration` parameter on the [quote](/wallets/actions/swap/get-quote) and [execute](/wallets/actions/swap/execute) endpoints. Privy allocates the developer fee within that cap and routes it to your recipient. The fee appears as a `developer` line item in the quote's estimated fees.

<Info>
  See [fees](/wallets/actions/swap/overview#fees) for the full breakdown of fees that apply to a
  swap, and the [get a quote](/wallets/actions/swap/get-quote) page for the `fee_configuration`
  parameter reference.
</Info>

## Next steps

<Card title="Monetization" icon="hand-holding-dollar" href="/financial-flows/monetization" arrow>
  Keep a share of the revenue generated across Earn, swaps, and transfers.
</Card>
