Skip to main content
Earn revenue on every swap by adding integrator fees. Fees are specified in basis points and sent directly to your recipient address on-chain.

Parameters

bigint
required
Fee in basis points as bigint (10n = 0.1%, 100n = 1%)
string
required
Address to receive fee payments
string
required
Your protocol/platform identifier (for analytics)

SDK Example

How It Works

Fee Calculation:
  • Fees are specified in basis points (bps)
  • Transferred directly to your recipient address on-chain
Fee Token Selection: The contract automatically selects the best token to collect fees using an on-chain priority mechanism. Stablecoins are preferred, followed by major assets (ETH, wstETH, WBTC, STRK, etc.).
The fee token is selected automatically based on the swap route - you don’t need to specify it.

Best Practices

Setting your integrator name helps with:
  • Analytics and volume tracking
  • Support and troubleshooting
  • Potential partnership opportunities

Swap Guide

Back to main swap documentation

API Reference

View complete API parameters