From 87b7ea1f88418c64917945cc75a36b3407d91541 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Feb 2026 22:23:30 +0000 Subject: [PATCH 1/4] Consolidate Relay Fees and App Fees documentation - Merged app-fees.mdx into fees.mdx for comprehensive fee documentation - Created single source of truth at references/api/api_core_concepts/fees.mdx - Updated all internal links across 15 files to point to consolidated doc - Removed old features/app-fees.mdx file - Maintained fee sponsorship as separate document https://claude.ai/code/session_01ASqZijbQrLrkKSL8USWCGF --- features/app-fees.mdx | 154 ------------ features/fee-sponsorship.mdx | 2 +- references/api/api_core_concepts/fees.mdx | 222 ++++++++++++++++-- .../api/api_core_concepts/step-execution.mdx | 2 +- .../api_guides/bridging-integration-guide.mdx | 2 +- .../api_guides/calling-integration-guide.mdx | 2 +- references/api/claim-app-fees.mdx | 2 +- references/api/get-app-fee-balances.mdx | 2 +- references/api/quickstart.mdx | 2 +- .../relay-kit/sdk/actions/claimAppFees.mdx | 2 +- .../relay-kit/sdk/actions/getAppFees.mdx | 2 +- script.js | 2 +- solutions/chains.mdx | 2 +- solutions/multichain-apps.mdx | 2 +- solutions/wallets-and-wallet-providers.mdx | 2 +- use-cases/bridging.mdx | 2 +- use-cases/cross-chain-swaps.mdx | 2 +- 17 files changed, 215 insertions(+), 191 deletions(-) delete mode 100644 features/app-fees.mdx diff --git a/features/app-fees.mdx b/features/app-fees.mdx deleted file mode 100644 index 9f2c58e..0000000 --- a/features/app-fees.mdx +++ /dev/null @@ -1,154 +0,0 @@ ---- -title: "App Fees" -description: "Add App Fees on any route and collect in stablecoins " ---- - -## 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 an offchain base _USDC,_ balance and can be withdrawn 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 including `AppFees` in the Quote API: - -```tsx -"appFees": [ - { - "recipient": "0x999999cf1046e68e36E1aA2E0E07105eDDD1f08E", //EVM Claim Address - "fee": "100" //App Fee (in BPS of input token) - } - ] -``` - -### 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 - -## Withdrawing App Balance - -App balance accrue in USDC from app fees, and can be claimed on any chain. The balance is free to claim on Base, and Relay app balance apply to claim on any other chain or in any other currency. - -The easiest way to claim your App Balance is to use the [Relay App](https://relay.link/claim-app-fees). The Relay App Balance page also supports withdrawing via a multisig. Here’s how you can withdraw via the API: - -### Get App Balance - -To check your accrued App Balance, use the App fee balances API. Here’s an example curl command and response. The response includes the `balances.currency` field reflecting your off-chain balance for each currency accumulated. - - -```bash cURL -curl --location 'https://api.relay.link/app-fees/0x03508bb71268bba25ecacc8f620e01866650532c/balances' -``` -```json Response - { - "currency": { - "chainId": 8453, - "address": "0x0000000000000000000000000000000000000000", - "symbol": "USDC", - "name": "USDC", - "decimals": 6, - "metadata": { - "logoURI": "https://assets.relay.link/icons/1/light.png", - "verified": false, - "isNative": false - } - }, - "amount": "75021651210714015", - "amountFormatted": "0.075021651210714015", - "amountUsd": "116.235557", - "minimumAmount": "75021651210714015" -} -``` - - -To learn more about this api, see the [Get App Fee Balance](/references/api/get-app-fee-balances) API reference. - -### How to withdraw your off-chain balance? - -To withdraw 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. - - -```bash cURL -curl --request POST \ - --url https://api.relay.link/app-fees/0x03508bb71268bba25ecacc8f620e01866650532c/claim \ - --header 'Content-Type: application/json' \ - --data '{ - "chainId": 8453, - "currency": "0x0000000000000000000000000000000000000000", - "recipient": "0x03508bb71268bba25ecacc8f620e01866650532c" -}' -``` -```typescript SDK -import { getClient } from "@relayprotocol/relay-sdk"; -import { useWalletClient } from "wagmi"; - -const { data: wallet } = useWalletClient(); - -const { data } = await getClient().actions.claimAppFees({ - wallet, - chainId: 8453, // Base - currency: "0x0000000000000000000000000000000000000000", // ETH - recipient: "0x...", // Optional - onProgress: ({steps, fees, breakdown, currentStep, currentStepItem, txHashes, details}) => { - // custom handling - }, -}); -``` -```json Response -{ - "steps": [ - { - "id": "authorize", - "action": "Sign authorization", - "description": "Authorize claiming funds", - "kind": "signature", - "items": [ - { - "status": "incomplete", - "data": { - "sign": { - "signatureKind": "eip191", - "message": "0xa344c6123e3da9fc3f9c81edeab0b2eb39f2ea80ba54a6e0ad00123dc180619c" - }, - "post": { - "endpoint": "/execute/permits", - "method": "POST", - "body": { - "kind": "claim", - "requestId": "0xa344c6123e3da9fc3f9c81edeab0b2eb39f2ea80ba54a6e0ad00123dc180619c" - } - } - } - } - ] - } - ] -} -``` - - -If you're using the API directly, you can then send a request to `/execute/permit` with the `requestId` and `signature` to claim your fees. An example request would be: - -```bash cURL -curl -X POST \ - https://api.relay.link/execute/permits?signature=${signature} \ - -H 'Content-Type: application/json' \ - -d '{ - "kind": "request", - "requestId": "0xa344c6123e3da9fc3f9c81edeab0b2eb39f2ea80ba54a6e0ad00123dc180619c" - }' -``` - -Once done, you can check your balance again to verify the withdrawal. To learn more about this api, see the [Claim App Fee Balance](/references/api/claim-app-fees) API reference. - -### Withdrawing via a smart contract - -In some cases you may want to accrue fees into a smart contract instead of an EOA. This can easily be done by setting the app fees recipient. The challenge is in claiming the fees to the contract. The claim API requires a signature to claim app fees but contracts cannot sign messages. To solve this, the API supports [EIP-1271](https://eips.ethereum.org/EIPS/eip-1271) which allows a smart contract to validate a signature using arbitrary logic. Once implemented our backend will check if the contract implements `isValidSignature` and use that method to verify the signature. - -Here is an example of how this might work in practice: - -* Wallet A (owner by contract owner), signs the message -* Then our backend gets the posted signature and calls the contract's `isValidSignature` method to verify the signature -* If the signature is valid, the funds get sent to the recipient. Let's say in this case the contract's `isValidSignature` method returns true if the signature was generated by wallet A. \ No newline at end of file diff --git a/features/fee-sponsorship.mdx b/features/fee-sponsorship.mdx index 7b2d2df..1b9d910 100644 --- a/features/fee-sponsorship.mdx +++ b/features/fee-sponsorship.mdx @@ -365,7 +365,7 @@ For more details on the fee structure, see [Relay Fees](/references/api/api_core ## Related Resources -- [App Fees](/features/app-fees) — Learn how to collect fees from your users +- [App Fees](/references/api/api_core_concepts/fees#app-fees) — Learn how to collect fees from your users - [Get App Fee Balances](/references/api/get-app-fee-balances) — API reference for checking balances - [Get Quote](/references/api/get-quote) — API reference for quote requests - [Relay Fees](/references/api/api_core_concepts/fees) — Understanding Relay's fee structure diff --git a/references/api/api_core_concepts/fees.mdx b/references/api/api_core_concepts/fees.mdx index db0809e..02e1cf4 100644 --- a/references/api/api_core_concepts/fees.mdx +++ b/references/api/api_core_concepts/fees.mdx @@ -1,32 +1,43 @@ --- -title: "Relay Fees" -description: "Learn about Relay fees" +title: "Fees" +description: "Comprehensive guide to Relay's fee structure and App Fees" --- -In any given Relay there are four potential fees: +## Overview -1. **Execution Fees** +Relay transactions involve multiple fee components that cover different aspects of the bridging and swapping process. Understanding these fees helps you provide transparency to your users and optimize your integration. - Fees to cover execution costs including network gas on the origin and/or destination chain. - - Fill gas estimate (and origin gas estimate for gasless transactions) - - \$0.02 flat fee -2. **Swap Fees** +## Fee Types - Fees to liquidity providers that facilitate cross-asset and cross-chain token swaps. - - DEX fees - - DEX swap impact - - Solver cross-chain rebalancing fees -3. **Relay Fees** +In any given Relay transaction, there are four potential fee types: - Fees charged for using the Relay API gateway and related services. - - 25% of swap fees and app fee -4. **App Fees** +### Execution Fees - Fees added on top of a Relay by you, the integrator. +Fees to cover execution costs including network gas on the origin and/or destination chain. +- Fill gas estimate (and origin gas estimate for gasless transactions) +- $0.02 flat fee -If you are interested in learning how app fees work, and how you can add them to your quotes please check out our [App Fees Doc](/features/app-fees).\ -\ -_Please note that the above fee structure applies to standard cases. In certain cases, such as route-specific campaigns or promotions, different fees may apply._ +### Swap Fees + +Fees to liquidity providers that facilitate cross-asset and cross-chain token swaps. +- DEX fees +- DEX swap impact +- Solver cross-chain rebalancing fees + +### Relay Fees + +Fees charged for using the Relay API gateway and related services. +- 25% of swap fees and app fee + +### App Fees + +Fees added on top of a Relay by you, the integrator. These are custom fees set by third-party developers on top of existing fees. See [App Fees](#app-fees) section below for detailed information. + + +The above fee structure applies to standard cases. In certain cases, such as route-specific campaigns or promotions, different fees may apply. + + +--- ## Fees Object @@ -40,7 +51,9 @@ The Fees object is returned from the quote API and the requests API. These fees **app**: Third party fees added on top of the existing fees, this fee is added by app developers and accrues offchain to minimize gas costs. -**subsidized**: The Fees in the order that are subsidized by the integrator. +**subsidized**: The Fees in the order that are subsidized by the integrator. Learn more about [Fee Sponsorship](/features/fee-sponsorship). + +--- ## Price Impact @@ -52,4 +65,169 @@ If you are interested in understanding or showing your user the fees of the orde **relay** - the price impact that results from the relay api fee (if applicable) -**app** - the price impact that results from the app fees (if applicable) \ No newline at end of file +**app** - the price impact that results from the app fees (if applicable) + +--- + +## App Fees + +App fees allow you to monetize your Relay integration by adding custom fees on top of existing Relay fees. These fees are specified when generating a quote and accrue in an offchain USDC balance for easy withdrawal. + +### What are App Fees? + +App fees are additional fees set by third-party developers on top of existing fees. To improve the gas costs of fee setting, App Fees are not paid out in real-time. Rather, App Fees accrue in an offchain base _USDC_ balance and can be withdrawn 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 including `AppFees` in the Quote API: + +```tsx +"appFees": [ + { + "recipient": "0x999999cf1046e68e36E1aA2E0E07105eDDD1f08E", //EVM Claim Address + "fee": "100" //App Fee (in BPS of input token) + } + ] +``` + +#### 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 + +### Withdrawing App Balance + +App balance accrue in USDC from app fees, and can be claimed on any chain. The balance is free to claim on Base, and Relay app balance apply to claim on any other chain or in any other currency. + +The easiest way to claim your App Balance is to use the [Relay App](https://relay.link/claim-app-fees). The Relay App Balance page also supports withdrawing via a multisig. Here's how you can withdraw via the API: + +#### Get App Balance + +To check your accrued App Balance, use the App fee balances API. Here's an example curl command and response. The response includes the `balances.currency` field reflecting your off-chain balance for each currency accumulated. + + +```bash cURL +curl --location 'https://api.relay.link/app-fees/0x03508bb71268bba25ecacc8f620e01866650532c/balances' +``` +```json Response + { + "currency": { + "chainId": 8453, + "address": "0x0000000000000000000000000000000000000000", + "symbol": "USDC", + "name": "USDC", + "decimals": 6, + "metadata": { + "logoURI": "https://assets.relay.link/icons/1/light.png", + "verified": false, + "isNative": false + } + }, + "amount": "75021651210714015", + "amountFormatted": "0.075021651210714015", + "amountUsd": "116.235557", + "minimumAmount": "75021651210714015" +} +``` + + +To learn more about this api, see the [Get App Fee Balance](/references/api/get-app-fee-balances) API reference. + +#### How to withdraw your off-chain balance? + +To withdraw 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. + + +```bash cURL +curl --request POST \ + --url https://api.relay.link/app-fees/0x03508bb71268bba25ecacc8f620e01866650532c/claim \ + --header 'Content-Type: application/json' \ + --data '{ + "chainId": 8453, + "currency": "0x0000000000000000000000000000000000000000", + "recipient": "0x03508bb71268bba25ecacc8f620e01866650532c" +}' +``` +```typescript SDK +import { getClient } from "@relayprotocol/relay-sdk"; +import { useWalletClient } from "wagmi"; + +const { data: wallet } = useWalletClient(); + +const { data } = await getClient().actions.claimAppFees({ + wallet, + chainId: 8453, // Base + currency: "0x0000000000000000000000000000000000000000", // ETH + recipient: "0x...", // Optional + onProgress: ({steps, fees, breakdown, currentStep, currentStepItem, txHashes, details}) => { + // custom handling + }, +}); +``` +```json Response +{ + "steps": [ + { + "id": "authorize", + "action": "Sign authorization", + "description": "Authorize claiming funds", + "kind": "signature", + "items": [ + { + "status": "incomplete", + "data": { + "sign": { + "signatureKind": "eip191", + "message": "0xa344c6123e3da9fc3f9c81edeab0b2eb39f2ea80ba54a6e0ad00123dc180619c" + }, + "post": { + "endpoint": "/execute/permits", + "method": "POST", + "body": { + "kind": "claim", + "requestId": "0xa344c6123e3da9fc3f9c81edeab0b2eb39f2ea80ba54a6e0ad00123dc180619c" + } + } + } + } + ] + } + ] +} +``` + + +If you're using the API directly, you can then send a request to `/execute/permit` with the `requestId` and `signature` to claim your fees. An example request would be: + +```bash cURL +curl -X POST \ + https://api.relay.link/execute/permits?signature=${signature} \ + -H 'Content-Type: application/json' \ + -d '{ + "kind": "request", + "requestId": "0xa344c6123e3da9fc3f9c81edeab0b2eb39f2ea80ba54a6e0ad00123dc180619c" + }' +``` + +Once done, you can check your balance again to verify the withdrawal. To learn more about this api, see the [Claim App Fee Balance](/references/api/claim-app-fees) API reference. + +#### Withdrawing via a smart contract + +In some cases you may want to accrue fees into a smart contract instead of an EOA. This can easily be done by setting the app fees recipient. The challenge is in claiming the fees to the contract. The claim API requires a signature to claim app fees but contracts cannot sign messages. To solve this, the API supports [EIP-1271](https://eips.ethereum.org/EIPS/eip-1271) which allows a smart contract to validate a signature using arbitrary logic. Once implemented our backend will check if the contract implements `isValidSignature` and use that method to verify the signature. + +Here is an example of how this might work in practice: + +* Wallet A (owner by contract owner), signs the message +* Then our backend gets the posted signature and calls the contract's `isValidSignature` method to verify the signature +* If the signature is valid, the funds get sent to the recipient. Let's say in this case the contract's `isValidSignature` method returns true if the signature was generated by wallet A. + +--- + +## Related Resources + +- [Fee Sponsorship](/features/fee-sponsorship) — Learn how to sponsor user transaction fees +- [Get App Fee Balances](/references/api/get-app-fee-balances) — API reference for checking balances +- [Claim App Fees](/references/api/claim-app-fees) — API reference for claiming fees +- [Get Quote](/references/api/get-quote) — API reference for quote requests diff --git a/references/api/api_core_concepts/step-execution.mdx b/references/api/api_core_concepts/step-execution.mdx index 2f44ebf..e1197be 100644 --- a/references/api/api_core_concepts/step-execution.mdx +++ b/references/api/api_core_concepts/step-execution.mdx @@ -239,7 +239,7 @@ Each step has a unique `id` that identifies the type of action required. Underst | Step ID | Description | When Used | | ----------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [`authorize`](#authorize) | Sign authorization for specific operations | Used for: (1) Claiming [app fees](/features/app-fees) - EIP-191 signature to verify wallet ownership, (2) [Hyperliquid](/references/api/api_guides/hyperliquid-support) v2 deposits - nonce-mapping signature. | +| [`authorize`](#authorize) | Sign authorization for specific operations | Used for: (1) Claiming [app fees](/references/api/api_core_concepts/fees#app-fees) - EIP-191 signature to verify wallet ownership, (2) [Hyperliquid](/references/api/api_guides/hyperliquid-support) v2 deposits - nonce-mapping signature. | | [`authorize1`](#authorize1) | Sign to approve swap of tokens | Main flow for cross-chain permits Permit/Permit2. | | [`authorize2`](#authorize2) | Sign to approve transfer of tokens | Same-chain swap permits. | diff --git a/references/api/api_guides/bridging-integration-guide.mdx b/references/api/api_guides/bridging-integration-guide.mdx index 81964e4..246b128 100644 --- a/references/api/api_guides/bridging-integration-guide.mdx +++ b/references/api/api_guides/bridging-integration-guide.mdx @@ -146,7 +146,7 @@ While not mandatory for integration, doing the following will improve the UX for ## See Also -- [**App Fees**](/features/app-fees): Monetize your integration by adding a fee (in bps) to every quote. +- [**App Fees**](/references/api/api_core_concepts/fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. - [**Deposit Addresses**](/features/deposit-addresses): Use Relay deposit addresses to unlock new chains and reduce wallet friction. - [**Fee Sponsorship**](/features/fee-sponsorship): Sponsor fees for your users to reduce friction and improve the user experience. - [**Handling Errors**](/references/api/api_core_concepts/errors): Handle quote errors when using the Relay API. diff --git a/references/api/api_guides/calling-integration-guide.mdx b/references/api/api_guides/calling-integration-guide.mdx index f17ecf2..9f052ca 100644 --- a/references/api/api_guides/calling-integration-guide.mdx +++ b/references/api/api_guides/calling-integration-guide.mdx @@ -967,7 +967,7 @@ const txs = [ ## See Also -- [**App Fees**](/features/app-fees): Monetize your integration by adding a fee (in bps) to every quote. +- [**App Fees**](/references/api/api_core_concepts/fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. - [**Fee Sponsorship**](/features/fee-sponsorship): Sponsor fees for your users to reduce friction and improve the user experience. - [**Handling Errors**](/references/api/api_core_concepts/errors): Handle quote errors when using the Relay API. - [**Relay Fees**](/references/api/api_core_concepts/fees): Understand the fees associated with using the Relay API. \ No newline at end of file diff --git a/references/api/claim-app-fees.mdx b/references/api/claim-app-fees.mdx index 364ec9e..413756f 100644 --- a/references/api/claim-app-fees.mdx +++ b/references/api/claim-app-fees.mdx @@ -4,4 +4,4 @@ description: "This API claims app fees for a specific wallet." openapi: post /app-fees/{wallet}/claim --- -[What are app fees?](/features/app-fees) \ No newline at end of file +[What are app fees?](/references/api/api_core_concepts/fees#app-fees) \ No newline at end of file diff --git a/references/api/get-app-fee-balances.mdx b/references/api/get-app-fee-balances.mdx index be88bc6..59514fa 100644 --- a/references/api/get-app-fee-balances.mdx +++ b/references/api/get-app-fee-balances.mdx @@ -4,4 +4,4 @@ description: "This API returns app fee balances for a specific wallet." openapi: get /app-fees/{wallet}/balances --- -[What are app fees?](/features/app-fees) \ No newline at end of file +[What are app fees?](/references/api/api_core_concepts/fees#app-fees) \ No newline at end of file diff --git a/references/api/quickstart.mdx b/references/api/quickstart.mdx index 7143d1c..d085660 100644 --- a/references/api/quickstart.mdx +++ b/references/api/quickstart.mdx @@ -246,7 +246,7 @@ Follow this 5-step flow to integrate Relay into your application: You have successfully executed your first cross-chain transaction with Relay! Check out some of the advanced features we offer to customize the experience: - - [**App Fees**](/features/app-fees): Monetize your integration by adding a fee (in bps) to every quote. Revenue is collected automatically in USDC. + - [**App Fees**](/references/api/api_core_concepts/fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. Revenue is collected automatically in USDC. - [**Smart Accounts**](/references/api/api_guides/smart_accounts/smart-accounts): Use [ERC-4337](/references/api/api_guides/smart_accounts/erc-4337) and [EIP-7702](/references/api/api_guides/smart_accounts/eip-7702) to enable *Gas Sponsorship* and *Atomic Batching* (e.g., Approve + Swap in one click). - [**Transaction Indexing**](/references/api/api_guides/transaction-indexing): Handle complex settlement scenarios, like tracking complex same-chain wraps or transfers. diff --git a/references/relay-kit/sdk/actions/claimAppFees.mdx b/references/relay-kit/sdk/actions/claimAppFees.mdx index 5e6c039..9aa7673 100644 --- a/references/relay-kit/sdk/actions/claimAppFees.mdx +++ b/references/relay-kit/sdk/actions/claimAppFees.mdx @@ -3,7 +3,7 @@ title: claimAppFees description: Claim app fees for a wallet --- -[What are app fees?](/features/app-fees) +[What are app fees?](/references/api/api_core_concepts/fees#app-fees) ### Parameters diff --git a/references/relay-kit/sdk/actions/getAppFees.mdx b/references/relay-kit/sdk/actions/getAppFees.mdx index 57b972c..15bb2b2 100644 --- a/references/relay-kit/sdk/actions/getAppFees.mdx +++ b/references/relay-kit/sdk/actions/getAppFees.mdx @@ -3,7 +3,7 @@ title: getAppFees description: Retrieve app fee balances for a specific wallet --- -[What are app fees?](/features/app-fees) +[What are app fees?](/references/api/api_core_concepts/fees#app-fees) ### Parameters diff --git a/script.js b/script.js index 9977344..25a02aa 100644 --- a/script.js +++ b/script.js @@ -94,7 +94,7 @@ function enhanceGetQuotePage() { addLearnMore( "body-app-fees", - "/features/app-fees", + "/references/api/api_core_concepts/fees#app-fees", "Learn more about app fees", "learn-more-app-fees", ); diff --git a/solutions/chains.mdx b/solutions/chains.mdx index a6c3090..10e87cb 100644 --- a/solutions/chains.mdx +++ b/solutions/chains.mdx @@ -17,7 +17,7 @@ Relay is designed to make transacting across chains as fast, cheap, and reliable **SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more. -**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables. +**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables. ## Getting Relay on your Chain diff --git a/solutions/multichain-apps.mdx b/solutions/multichain-apps.mdx index add9a13..e126784 100644 --- a/solutions/multichain-apps.mdx +++ b/solutions/multichain-apps.mdx @@ -23,7 +23,7 @@ Relay is designed to make transacting across chains as fast, cheap, and reliable **SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more. -**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## Integrating Relay diff --git a/solutions/wallets-and-wallet-providers.mdx b/solutions/wallets-and-wallet-providers.mdx index 64cd8a0..38ee18a 100644 --- a/solutions/wallets-and-wallet-providers.mdx +++ b/solutions/wallets-and-wallet-providers.mdx @@ -21,7 +21,7 @@ Relay is designed to make transacting across chains as fast, cheap, and reliable **SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more. -**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## Integrating Relay diff --git a/use-cases/bridging.mdx b/use-cases/bridging.mdx index 8661cf4..38549c3 100644 --- a/use-cases/bridging.mdx +++ b/use-cases/bridging.mdx @@ -13,7 +13,7 @@ Relay enables instant bridging (deposits & withdrawals) on supported chains. By **Deposit Addresses** - [Deposit Addresses](/features/deposit-addresses) allow users to onboard onto any chain via a transfer on any network. This makes it seamless for users to onboard from centralized exchanges or without connecting a wallet. -**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## How it Works diff --git a/use-cases/cross-chain-swaps.mdx b/use-cases/cross-chain-swaps.mdx index 19ee3f6..c8d8568 100644 --- a/use-cases/cross-chain-swaps.mdx +++ b/use-cases/cross-chain-swaps.mdx @@ -15,7 +15,7 @@ Relay enables both same and cross-chain swaps on supported chains. We couple rob **Gasless Support** - Relay supports gasless swaps via native support of 4337 account abstraction, 7702 support, and gasless permit execution (3009 and 2612) -**App Fees** - Our comprehensive approach to [App Fees](/features/app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## How it Works From bab22bff72a4fed8ef8b76bc286a86b14709dbb8 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Feb 2026 22:45:24 +0000 Subject: [PATCH 2/4] Move consolidated fees documentation to Features section Moved the consolidated fees documentation from the API Core Concepts section to the Features section on the first page of docs, making it more discoverable for users. Changes: - Moved fees.mdx to features/relay-fees-and-app-fees.mdx - Updated title to "Relay Fees & App Fees" - Updated docs.json navigation to reference new location - Removed fees from API Core Concepts section - Updated all internal links (17 files) from old to new path - Updated redirect in docs.json This positions fees documentation prominently on the Overview tab under Features, alongside other key features like Fee Sponsorship, Deposit Addresses, and Fast Fill. https://claude.ai/code/session_01ASqZijbQrLrkKSL8USWCGF --- docs.json | 5 ++--- features/fee-sponsorship.mdx | 6 +++--- .../fees.mdx => features/relay-fees-and-app-fees.mdx | 2 +- references/api/api_core_concepts/step-execution.mdx | 4 ++-- references/api/api_guides/bridging-integration-guide.mdx | 4 ++-- references/api/api_guides/calling-integration-guide.mdx | 4 ++-- references/api/claim-app-fees.mdx | 2 +- references/api/get-app-fee-balances.mdx | 2 +- references/api/quickstart.mdx | 2 +- references/relay-kit/sdk/actions/claimAppFees.mdx | 2 +- references/relay-kit/sdk/actions/getAppFees.mdx | 2 +- script.js | 4 ++-- solutions/chains.mdx | 2 +- solutions/multichain-apps.mdx | 2 +- solutions/wallets-and-wallet-providers.mdx | 2 +- use-cases/bridging.mdx | 2 +- use-cases/cross-chain-swaps.mdx | 2 +- 17 files changed, 24 insertions(+), 25 deletions(-) rename references/api/api_core_concepts/fees.mdx => features/relay-fees-and-app-fees.mdx (99%) diff --git a/docs.json b/docs.json index d9acf6a..57d97b0 100644 --- a/docs.json +++ b/docs.json @@ -38,7 +38,7 @@ { "group": "Features", "pages": [ - "features/app-fees", + "features/relay-fees-and-app-fees", "features/fee-sponsorship", "features/deposit-addresses", "features/sponsored-execution", @@ -81,7 +81,6 @@ "pages": [ "references/api/api_core_concepts/step-execution", "references/api/api_core_concepts/wallet-detection", - "references/api/api_core_concepts/fees", "references/api/api_core_concepts/refunds", "references/api/api_core_concepts/input-validation", "references/api/api_core_concepts/trade-types", @@ -365,7 +364,7 @@ }, { "source": "/how-it-works/fees", - "destination": "/references/api/api_core_concepts/fees" + "destination": "/features/relay-fees-and-app-fees" }, { "source": "/references/sdk/bridging/executing-a-bridge", diff --git a/features/fee-sponsorship.mdx b/features/fee-sponsorship.mdx index 1b9d910..ee32d91 100644 --- a/features/fee-sponsorship.mdx +++ b/features/fee-sponsorship.mdx @@ -347,7 +347,7 @@ When you sponsor transactions, the quote response includes a `fees` object with } ``` -For more details on the fee structure, see [Relay Fees](/references/api/api_core_concepts/fees). +For more details on the fee structure, see [Relay Fees](/features/relay-fees-and-app-fees). --- @@ -365,8 +365,8 @@ For more details on the fee structure, see [Relay Fees](/references/api/api_core ## Related Resources -- [App Fees](/references/api/api_core_concepts/fees#app-fees) — Learn how to collect fees from your users +- [App Fees](/features/relay-fees-and-app-fees#app-fees) — Learn how to collect fees from your users - [Get App Fee Balances](/references/api/get-app-fee-balances) — API reference for checking balances - [Get Quote](/references/api/get-quote) — API reference for quote requests -- [Relay Fees](/references/api/api_core_concepts/fees) — Understanding Relay's fee structure +- [Relay Fees](/features/relay-fees-and-app-fees) — Understanding Relay's fee structure - [Solana Support](/references/api/api_guides/solana) — Guide to depositing and withdrawing on Solana \ No newline at end of file diff --git a/references/api/api_core_concepts/fees.mdx b/features/relay-fees-and-app-fees.mdx similarity index 99% rename from references/api/api_core_concepts/fees.mdx rename to features/relay-fees-and-app-fees.mdx index 02e1cf4..cba7878 100644 --- a/references/api/api_core_concepts/fees.mdx +++ b/features/relay-fees-and-app-fees.mdx @@ -1,5 +1,5 @@ --- -title: "Fees" +title: "Relay Fees & App Fees" description: "Comprehensive guide to Relay's fee structure and App Fees" --- diff --git a/references/api/api_core_concepts/step-execution.mdx b/references/api/api_core_concepts/step-execution.mdx index e1197be..44142bd 100644 --- a/references/api/api_core_concepts/step-execution.mdx +++ b/references/api/api_core_concepts/step-execution.mdx @@ -239,7 +239,7 @@ Each step has a unique `id` that identifies the type of action required. Underst | Step ID | Description | When Used | | ----------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [`authorize`](#authorize) | Sign authorization for specific operations | Used for: (1) Claiming [app fees](/references/api/api_core_concepts/fees#app-fees) - EIP-191 signature to verify wallet ownership, (2) [Hyperliquid](/references/api/api_guides/hyperliquid-support) v2 deposits - nonce-mapping signature. | +| [`authorize`](#authorize) | Sign authorization for specific operations | Used for: (1) Claiming [app fees](/features/relay-fees-and-app-fees#app-fees) - EIP-191 signature to verify wallet ownership, (2) [Hyperliquid](/references/api/api_guides/hyperliquid-support) v2 deposits - nonce-mapping signature. | | [`authorize1`](#authorize1) | Sign to approve swap of tokens | Main flow for cross-chain permits Permit/Permit2. | | [`authorize2`](#authorize2) | Sign to approve transfer of tokens | Same-chain swap permits. | @@ -616,7 +616,7 @@ Sign authorization for same-chain swap permits using PermitBatchWitnessTransferF } ``` -Along with the steps you'll see that the following objects are returned: `fees`, `breakdown` and `balances`. Information about fees is detailed [here](/references/api/api_core_concepts/fees). `breakdown` pertains to time estimation for the execution, broken down by value. The `balances` object is in regards to the user and how much they require to solve for the execution. +Along with the steps you'll see that the following objects are returned: `fees`, `breakdown` and `balances`. Information about fees is detailed [here](/features/relay-fees-and-app-fees). `breakdown` pertains to time estimation for the execution, broken down by value. The `balances` object is in regards to the user and how much they require to solve for the execution. ### Checking the fill status diff --git a/references/api/api_guides/bridging-integration-guide.mdx b/references/api/api_guides/bridging-integration-guide.mdx index 246b128..6139abc 100644 --- a/references/api/api_guides/bridging-integration-guide.mdx +++ b/references/api/api_guides/bridging-integration-guide.mdx @@ -146,8 +146,8 @@ While not mandatory for integration, doing the following will improve the UX for ## See Also -- [**App Fees**](/references/api/api_core_concepts/fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. +- [**App Fees**](/features/relay-fees-and-app-fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. - [**Deposit Addresses**](/features/deposit-addresses): Use Relay deposit addresses to unlock new chains and reduce wallet friction. - [**Fee Sponsorship**](/features/fee-sponsorship): Sponsor fees for your users to reduce friction and improve the user experience. - [**Handling Errors**](/references/api/api_core_concepts/errors): Handle quote errors when using the Relay API. -- [**Relay Fees**](/references/api/api_core_concepts/fees): Understand the fees associated with using the Relay API. \ No newline at end of file +- [**Relay Fees**](/features/relay-fees-and-app-fees): Understand the fees associated with using the Relay API. \ No newline at end of file diff --git a/references/api/api_guides/calling-integration-guide.mdx b/references/api/api_guides/calling-integration-guide.mdx index 9f052ca..44b0714 100644 --- a/references/api/api_guides/calling-integration-guide.mdx +++ b/references/api/api_guides/calling-integration-guide.mdx @@ -967,7 +967,7 @@ const txs = [ ## See Also -- [**App Fees**](/references/api/api_core_concepts/fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. +- [**App Fees**](/features/relay-fees-and-app-fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. - [**Fee Sponsorship**](/features/fee-sponsorship): Sponsor fees for your users to reduce friction and improve the user experience. - [**Handling Errors**](/references/api/api_core_concepts/errors): Handle quote errors when using the Relay API. -- [**Relay Fees**](/references/api/api_core_concepts/fees): Understand the fees associated with using the Relay API. \ No newline at end of file +- [**Relay Fees**](/features/relay-fees-and-app-fees): Understand the fees associated with using the Relay API. \ No newline at end of file diff --git a/references/api/claim-app-fees.mdx b/references/api/claim-app-fees.mdx index 413756f..c68259a 100644 --- a/references/api/claim-app-fees.mdx +++ b/references/api/claim-app-fees.mdx @@ -4,4 +4,4 @@ description: "This API claims app fees for a specific wallet." openapi: post /app-fees/{wallet}/claim --- -[What are app fees?](/references/api/api_core_concepts/fees#app-fees) \ No newline at end of file +[What are app fees?](/features/relay-fees-and-app-fees#app-fees) \ No newline at end of file diff --git a/references/api/get-app-fee-balances.mdx b/references/api/get-app-fee-balances.mdx index 59514fa..468e825 100644 --- a/references/api/get-app-fee-balances.mdx +++ b/references/api/get-app-fee-balances.mdx @@ -4,4 +4,4 @@ description: "This API returns app fee balances for a specific wallet." openapi: get /app-fees/{wallet}/balances --- -[What are app fees?](/references/api/api_core_concepts/fees#app-fees) \ No newline at end of file +[What are app fees?](/features/relay-fees-and-app-fees#app-fees) \ No newline at end of file diff --git a/references/api/quickstart.mdx b/references/api/quickstart.mdx index d085660..68134c0 100644 --- a/references/api/quickstart.mdx +++ b/references/api/quickstart.mdx @@ -246,7 +246,7 @@ Follow this 5-step flow to integrate Relay into your application: You have successfully executed your first cross-chain transaction with Relay! Check out some of the advanced features we offer to customize the experience: - - [**App Fees**](/references/api/api_core_concepts/fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. Revenue is collected automatically in USDC. + - [**App Fees**](/features/relay-fees-and-app-fees#app-fees): Monetize your integration by adding a fee (in bps) to every quote. Revenue is collected automatically in USDC. - [**Smart Accounts**](/references/api/api_guides/smart_accounts/smart-accounts): Use [ERC-4337](/references/api/api_guides/smart_accounts/erc-4337) and [EIP-7702](/references/api/api_guides/smart_accounts/eip-7702) to enable *Gas Sponsorship* and *Atomic Batching* (e.g., Approve + Swap in one click). - [**Transaction Indexing**](/references/api/api_guides/transaction-indexing): Handle complex settlement scenarios, like tracking complex same-chain wraps or transfers. diff --git a/references/relay-kit/sdk/actions/claimAppFees.mdx b/references/relay-kit/sdk/actions/claimAppFees.mdx index 9aa7673..be129a3 100644 --- a/references/relay-kit/sdk/actions/claimAppFees.mdx +++ b/references/relay-kit/sdk/actions/claimAppFees.mdx @@ -3,7 +3,7 @@ title: claimAppFees description: Claim app fees for a wallet --- -[What are app fees?](/references/api/api_core_concepts/fees#app-fees) +[What are app fees?](/features/relay-fees-and-app-fees#app-fees) ### Parameters diff --git a/references/relay-kit/sdk/actions/getAppFees.mdx b/references/relay-kit/sdk/actions/getAppFees.mdx index 15bb2b2..6632e75 100644 --- a/references/relay-kit/sdk/actions/getAppFees.mdx +++ b/references/relay-kit/sdk/actions/getAppFees.mdx @@ -3,7 +3,7 @@ title: getAppFees description: Retrieve app fee balances for a specific wallet --- -[What are app fees?](/references/api/api_core_concepts/fees#app-fees) +[What are app fees?](/features/relay-fees-and-app-fees#app-fees) ### Parameters diff --git a/script.js b/script.js index 25a02aa..e7c5d65 100644 --- a/script.js +++ b/script.js @@ -94,7 +94,7 @@ function enhanceGetQuotePage() { addLearnMore( "body-app-fees", - "/references/api/api_core_concepts/fees#app-fees", + "/features/relay-fees-and-app-fees#app-fees", "Learn more about app fees", "learn-more-app-fees", ); @@ -108,7 +108,7 @@ function enhanceGetQuotePage() { addLearnMore( "response-fees", - "/references/api/api_core_concepts/fees", + "/features/relay-fees-and-app-fees", "Learn more about fees", "learn-more-fees", "before", diff --git a/solutions/chains.mdx b/solutions/chains.mdx index 10e87cb..de4c66a 100644 --- a/solutions/chains.mdx +++ b/solutions/chains.mdx @@ -17,7 +17,7 @@ Relay is designed to make transacting across chains as fast, cheap, and reliable **SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more. -**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables. +**App Fees** - Our comprehensive approach to [App Fees](/features/relay-fees-and-app-fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables. ## Getting Relay on your Chain diff --git a/solutions/multichain-apps.mdx b/solutions/multichain-apps.mdx index e126784..0b7ce02 100644 --- a/solutions/multichain-apps.mdx +++ b/solutions/multichain-apps.mdx @@ -23,7 +23,7 @@ Relay is designed to make transacting across chains as fast, cheap, and reliable **SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more. -**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/features/relay-fees-and-app-fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## Integrating Relay diff --git a/solutions/wallets-and-wallet-providers.mdx b/solutions/wallets-and-wallet-providers.mdx index 38ee18a..b0f4dee 100644 --- a/solutions/wallets-and-wallet-providers.mdx +++ b/solutions/wallets-and-wallet-providers.mdx @@ -21,7 +21,7 @@ Relay is designed to make transacting across chains as fast, cheap, and reliable **SLAs & Customer Support** - Relay is your partner in delivering a world-class multichain experience. We are happy to offer SLAs on quote and fill speed, network uptime, and more. -**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/features/relay-fees-and-app-fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## Integrating Relay diff --git a/use-cases/bridging.mdx b/use-cases/bridging.mdx index 38549c3..0a8de52 100644 --- a/use-cases/bridging.mdx +++ b/use-cases/bridging.mdx @@ -13,7 +13,7 @@ Relay enables instant bridging (deposits & withdrawals) on supported chains. By **Deposit Addresses** - [Deposit Addresses](/features/deposit-addresses) allow users to onboard onto any chain via a transfer on any network. This makes it seamless for users to onboard from centralized exchanges or without connecting a wallet. -**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/features/relay-fees-and-app-fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## How it Works diff --git a/use-cases/cross-chain-swaps.mdx b/use-cases/cross-chain-swaps.mdx index c8d8568..61b8ff9 100644 --- a/use-cases/cross-chain-swaps.mdx +++ b/use-cases/cross-chain-swaps.mdx @@ -15,7 +15,7 @@ Relay enables both same and cross-chain swaps on supported chains. We couple rob **Gasless Support** - Relay supports gasless swaps via native support of 4337 account abstraction, 7702 support, and gasless permit execution (3009 and 2612) -**App Fees** - Our comprehensive approach to [App Fees](/references/api/api_core_concepts/fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). +**App Fees** - Our comprehensive approach to [App Fees](/features/relay-fees-and-app-fees#app-fees) lets you easily earn when using Relay. Additionally, we have designed our fee system for you to automatically collect fees in stables (USDC). ## How it Works From 402966916dcfca0b2f332e6833372f7d30783f72 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Feb 2026 23:05:10 +0000 Subject: [PATCH 3/4] Restructure fees documentation hierarchy Made "Fees Object" and "Price Impact" subsections (H3) under "Fee Types" to improve document organization and hierarchy. https://claude.ai/code/session_01ASqZijbQrLrkKSL8USWCGF --- features/relay-fees-and-app-fees.mdx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/features/relay-fees-and-app-fees.mdx b/features/relay-fees-and-app-fees.mdx index cba7878..2ff55d6 100644 --- a/features/relay-fees-and-app-fees.mdx +++ b/features/relay-fees-and-app-fees.mdx @@ -37,9 +37,7 @@ Fees added on top of a Relay by you, the integrator. These are custom fees set b The above fee structure applies to standard cases. In certain cases, such as route-specific campaigns or promotions, different fees may apply. ---- - -## Fees Object +### Fees Object The Fees object is returned from the quote API and the requests API. These fees are only the Relay related fee, and are segmented as the following fees: @@ -53,9 +51,7 @@ The Fees object is returned from the quote API and the requests API. These fees **subsidized**: The Fees in the order that are subsidized by the integrator. Learn more about [Fee Sponsorship](/features/fee-sponsorship). ---- - -## Price Impact +### Price Impact If you are interested in understanding or showing your user the fees of the order more broadly, it's best to look at the `expanded price impact` object which reports: @@ -67,8 +63,6 @@ If you are interested in understanding or showing your user the fees of the orde **app** - the price impact that results from the app fees (if applicable) ---- - ## App Fees App fees allow you to monetize your Relay integration by adding custom fees on top of existing Relay fees. These fees are specified when generating a quote and accrue in an offchain USDC balance for easy withdrawal. From f30808d0153b185da143addacd7bb701be95a5c8 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Feb 2026 23:16:41 +0000 Subject: [PATCH 4/4] Add 'Fees in the API' section heading Restructured to create a new H2 section 'Fees in the API' with 'Fees Object' and 'Price Impact' as subsections, improving document organization. https://claude.ai/code/session_01ASqZijbQrLrkKSL8USWCGF --- features/relay-fees-and-app-fees.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/relay-fees-and-app-fees.mdx b/features/relay-fees-and-app-fees.mdx index 2ff55d6..302a3e0 100644 --- a/features/relay-fees-and-app-fees.mdx +++ b/features/relay-fees-and-app-fees.mdx @@ -37,6 +37,8 @@ Fees added on top of a Relay by you, the integrator. These are custom fees set b The above fee structure applies to standard cases. In certain cases, such as route-specific campaigns or promotions, different fees may apply. +## Fees in the API + ### Fees Object The Fees object is returned from the quote API and the requests API. These fees are only the Relay related fee, and are segmented as the following fees: