Skip to main content
With swap fee sponsorship, your organization pays swap fees and execution costs, so the user’s wallet keeps more of the output. Your own client fee is not sponsored. Sponsored fees are billed to your organization. Swap fee sponsorship is separate from gas sponsorship. Swap fee sponsorship covers Turnkey’s swap fees + execution costs and is set on the quote. Gas sponsorship covers the origin-chain transaction’s gas (or similar network fee) and is set with sponsor: true on execute. Prerequisites:
  • Your parent organization is on an Enterprise plan.
  • Only the parent organization can turn on the feature + set and change spend limits. Parent organizations set organization wide spend limits as well as a single spend limit that applies to each sub-organization.

Set the spend limit

From the parent organization, submit ACTIVITY_TYPE_UPSERT_SWAP_FEE_SPONSORSHIP_LIMIT_CONFIG with enabled: true and two USD limits over a rolling time window:
  • Organization-wide limit: the cap on sponsored fees across your parent organization and all of its sub-organizations, in aggregate.
  • Sub-organization limit: the cap that applies to each of your sub-organizations individually.
Turning swap fee sponsorship on or off changes your organization’s signed configuration, so it requires root quorum approval. Enabling Swap Fee Sponsorship accepts the DeFi-related Features Addendum to the Turnkey Terms of Service on behalf of your organization. The authority to change the limits while swap fee sponsorship is enabled is determined by your policies. Setting enabled: false turns swap fee sponsorship off and your current limits are saved and applied again when you re-enable swap fee sponsorship. You can adjust them at any time.

Request a sponsored quote

Submit ACTIVITY_TYPE_CREATE_SWAP_QUOTE_V3 with feeSponsorship: true. Swap fee sponsorship quotes are otherwise treated the same as regular quotes. With the TypeScript SDK, createSwapQuote sends V3 as of v2026.10.1. With the Go SDK (v2.2.0 or later), use Client.CreateSwapQuote, which sends V3. A sponsored quote comes back with feeSponsorship: true, and its outputAmount and minOutputAmount are no longer reduced by swap fees. Your client fee, if configured, still applies. To also swap stablecoins at a fixed rate, set fixedRate too. See Fixed-Rate Swaps.

Execute the quote

Execute the quote with ACTIVITY_TYPE_EXECUTE_SWAP_V4 as for any quote. The quote ID carries over the sponsorship state when the quote was generated; i.e., there is nothing additional needed to sponsor swap fees at the execution step if you generated a quote with feeSponsorship: true. To also sponsor gas, set sponsor: true. A market swap has no quote to bind it, so set market.feeSponsorship: true on the execute intent instead. Use feeSponsorship: true on get_indicative_swap_quote to preview the sponsored price.

Check usage

get_swap_sponsorship_usage returns whether swap fee sponsorship is permitted for your organization, its spend limit, and available spend remaining in the current window. Failed transactions don’t have any sponsored fee. If the swap fails on the destination chain the gas is deducted from the input amount returned to the user’s wallet, whether or not the fees are sponsored. A swap counts against the limit once its final cost is recorded, shortly after it completes. Pending swaps are not reserved, so the available spend remaining does not account for swaps still in progress.

Errors

A quote that requests swap fee sponsorship fails, rather than falling back to an unsponsored quote, when: A quote is also rejected when the spend limit is turned off, or when the swap’s estimated cost would exceed what is left in the window. Check usage or raise the limit.

Next steps