Fees¶
Every cost is quoted before you commit. Nothing is charged that didn't appear on the quote you built.
Route fees¶
Each route carries a fees object:
| Field | Meaning |
|---|---|
routeFee / routeFeeUsd |
The routing fee for this route, in input-token units and USD. |
integratorFee / integratorFeeUsd |
Your own fee, when an integrator fee is configured for your key. Zero otherwise. |
Fees are reflected in amountOut — the quoted output is what the user receives
after fees, not before.
Gas¶
- Self-executed swaps (Build path and
friends): you submit the returned transaction, so you pay gas as usual. The
quote's
gasFeeobject (gasFee,gasFeeUsd,gasLimit) tells you what to expect. - Gasless swaps: the platform relayer pays the gas via Photon. The user pays no native token — that cost is covered by the gasless service fee below.
The gasless service fee¶
Gasless execution charges a small fee in the input token, targeted at roughly $0.01 USD per swap. It appears on every gasless quote as:
"fee": {
"feeAmount": "10000", // input-token units (string)
"feeRecipient": "0x…",
"feeUsd": 0.01
}
The fee is part of the signed Permit2 amount, so the user authorizes it
explicitly — there is no hidden spread. If the input amount is too small to
cover the fee meaningfully, the quote reflects that; show feeUsd next to the
quoted output and let the user decide.
No fee, no charge cases¶
- Quoting is free — hit Get quote routes as often as you like within rate limits.
- An expired
quoteIdthat fails to build costs nothing. - A gasless submission that fails on-chain does not deliver output; the specific failure mode is reported on Get gasless swap status.