What are App Fees?
App fees are additional fees set by third-party developers on top of existing fees. These fees are specified when generating a quote. To improve the gas costs of fee setting, App fees are not paid out in real-time. Rather, App Fees accrue in base USDC, and can be claimed as desired at your convenience.Setting App Fees
App Fees are measured in basis points (bps) based on the input value of an order. When setting an app fee, an EVM-based claim address must be provided, which will be used for withdrawing accumulated fees. A single quote can include multiple App fees. You can accrue fees by includingAppFees
in the Quote API:
Additional Considerations
- On same-chain operations where the solver holds neither the input or output currency, an extra swap is added within the transaction to swap from the input currency into a currency accepted by the solver for App Fees
- For this to occur, the fee to be taken needs to be greater than $0.025. This is to prevent the situation where the action of taking the app fee will consume more in gas than the fee itself.
- App Fee Recipients must be an EVM compatible wallet address, even for non-EVM chains.
- App fees can be an array, for setting multiple fees at once
Claiming App Fees
App fees accrue in USDC, and can be claimed on any chain. Fees are free to claim on Base, and Relay exchange fees apply to claim on any other chain or in any other currency. The easiest way to claim your App fees is to use the Relay App. The Relay App also works for claiming via a multisig. Here’s how you can claim via API:Check App Fees Balance
To check your accrued App fees, use the App fee balances API. Here’s an example curl command:balances.currency
field reflecting your off-chain balance for each currency accumulated:
How to claim your off-chain balance?
To claim your app fees, use the app fees claim API. If using the API, the response will guide you through signing and submitting a message to the/execute/permit
endpoint to verify ownership of your claim address. The SDK automates this process for you.
API/SDK
/execute/permit
with the requestId
and signature
to claim your fees. An example request would be: