Monetize Your Integration
Affiliate fees let you earn a percentage of every swap that flows through your integration. Whether you’re building a DeFi aggregator, wallet, or trading interface — affiliate fees turn your integration into a revenue stream. Affiliate fees are supported on the deBridge Liquidity Network API. The mechanism works the same way: you specify a fee percentage and recipient address, and the fee is collected from each swap.Affiliate fees require building an integration using the deBridge API (DLN) or Widget. For earning without writing
code, see deBridge Points and Custom Linking.
Why Affiliate Fees Matter
Maximum affiliate fee is 10% (1000 basis points). The fee is taken from the input amount before the swap. Keep in mind that
higher affiliate fees result in worse exchange rates for your users, so balance revenue with competitive pricing.
How It Works
- User initiates a swap through your integration
- You specify your affiliate fee percentage and recipient address
- deBridge collects the fee from the swap amount
- Fee is sent to your wallet automatically (EVM) or manually claimed (Solana)
Quick Implementation
DLN API Integration
Add parameters to yourcreate-tx request.
Widget Integration
Add the parameters to your widget configuration.Receiving Your Fees
EVM Chains
Affiliate fees are automatically transferred to your wallet when a solver claims the order. No action required on your part.Solana
Affiliate fees must be manually withdrawn. Use thewithdrawAffiliateFee method of the DLN program.
For cross-chain swaps, see the withdrawal guide.
For same-chain swaps on Solana, the affiliateFeeRecipient must be a Jupiter referral key.
Getting Started
Get a Referral Code
Generate your referral code at app.debridge.com/refer. Choose Polygon for the cheapest
option—it works across all chains including Solana.
Add Parameters
Include
affiliateFeePercent and affiliateFeeRecipient in your API calls or widget config.Technical Deep-Dives
For detailed technical specifications, see the DLN reference documentation:Affiliate Fees (Technical)
Complete API parameters and fee mechanics
Withdrawing Fees
Manual withdrawal process for Solana and edge cases
Referral Codes
Using referral codes for tracking and features
Auto-Cancellation
Automatic order cancellation for improved UX