Skip to main content
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.
Custom fees for swaps are in early access. Contact [email protected] to enable them for your app and set your fee recipient.

How it works

Once custom fees are enabled, set a total fee cap with the fee_configuration parameter on the quote and 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.
See fees for the full breakdown of fees that apply to a swap, and the get a quote page for the fee_configuration parameter reference.

Next steps

Monetization

Keep a share of the revenue generated across Earn, swaps, and transfers.