Affiliate fees

Describes how to configure and receive affiliate fees for both cross-chain and same-chain swaps. Includes platform-specific handling for EVM and Solana.

Affiliate Fees

Affiliate fees can be earned through both cross-chain and same-chain swaps by including the appropriate parameters in the request. This allows integrators to monetize swap activity within their applications.

Cross-Chain Affiliate Fees

To enable affiliate fees for cross-chain swaps, the following parameters must be included when creating an order:

  • affiliateFeePercent: The percentage of the order input amount allocated as the affiliate fee.

  • affiliateFeeRecipient: The address or public key of the affiliate fee beneficiary. This must be:

    • A public key on Solana

    • A wallet address on EVM chains

Affiliate fees become available once an order reaches the ClaimedUnlock state.

Same-Chain Affiliate Fees

The deBridge Widget also supports affiliate fee collection for same-chain swaps. These swaps use the same affiliateFeePercent and affiliateFeeRecipient parameters, with Solana requiring additional configuration.

Solana

For same-chain swaps on Solana:

Last updated

Was this helpful?