Skip to main content

How it works

Approved integrators can charge their own fee on top of Rialto’s on every swap they route. The fee is collected as part of the swap and paid to your wallet in the same onchain transaction. There is no separate claim step, no fee contract to deploy, and no settlement to run yourself.
  1. You request a quote with a swap_fee_bps value, your fee in basis points.
  2. Rialto adds your fee on top of its own and returns the full breakdown.
  3. The same quote includes one executable transaction that, on execution, pays both Rialto’s treasury and your wallet atomically.
  4. The taker signs or approves as needed, then submits the quote’s tx directly or signs Permit2 for gasless relay.
Your fee is additive. Rialto charges its standard fee, and your fee is taken on top. Rialto does not take any cut of your portion.

What is bound to your key

Because these are bound to the key and not the request, a leaked or tampered request can never redirect your fees or raise your fee above your cap.

Setting your fee

Add swap_fee_bps to the standard quote request. Your payout wallet and cap come from your key, so you do not pass them on the request.

Reading the fee in the response

A quote with an integrator fee gains two things: an integrator_fee block echoing your fee, payout wallet, and integrator id; and extra entries in platform_fee.fees, one line per recipient, each showing the token the fee is taken in and the exact amount. Rialto selects the most suitable fee token in the swap automatically, so you do not choose a fee token.
In this example Rialto’s fee is 50 bps and your fee is 30 bps, for a combined total_bps of 80. The recipient on the second line is your payout wallet. The token and amount fields tell you exactly which token the fee is taken in and how much.

Python example

This example requests a quote with an integrator fee, handles any approval, signs and inserts a Permit2 signature when required, and submits the returned transaction.

Caps and rules

Execute an integrator-fee quote exactly like any other quote. The fee recipient and cap are key-bound server-side, and the fee split is encoded into the transaction Rialto returns.