Monetization Controls on Solana API
Add volume-based fees to any Solana swap request. Existing integrations are unaffected until you opt in.
July 27, 2026
Feature Release

The 0x Solana API now supports monetization controls. Integrators can charge one or more volume-based fees directly through the swap request, matching the fee controls already available on the EVM Swap API. Every field is optional, so existing integrations are unchanged until they opt in.
How it works
Volume-based fees are set with three request fields. swap_fee_ppm is the fee rate in parts per million, swap_fee_recipient is the account that receives it, and the optional swap_fee_side selects whether the fee is charged on the buy (output) token or the sell (input) token. Each field accepts a comma-separated list, so a single request can route several fees to several recipients across both sides. Fees on the same side apply sequentially, each charged on the amount remaining after the previous one.
{
"token_out": "So11111111111111111111111111111111111111112",
"token_in": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount_in": 100000000,
"taker": "<TAKER_ADDRESS>",
"swap_fee_ppm": "50000,25000",
"swap_fee_recipient": "<RECIPIENT_1>,<RECIPIENT_2>",
"swap_fee_side": "buy,sell"
}What to know
Fees are expressed in parts per million, not basis points - 10,000 ppm is 1%. Each fee entry is validated against a per-app maximum, 100,000 ppm (10%) by default, applied per entry rather than to the combined total.
For token outputs, the fee recipient must be an existing token account; 0x does not create it. For native SOL output, a wallet address is accepted.
Use cases
- Wallet swap fee: A wallet charges a buy-side fee to its own account on every swap and earns revenue without leaving the API.
- Revenue share: A front-end splits one swap fee between its treasury and a referral partner using two recipient entries in a single request.
- Mixed-side pricing: An integrator charges a sell-side fee on the input token and a separate buy-side partner fee on the output token in one call.
See the guide for the full API reference & examples.
Start building for free by signing up through the 0x dashboard.
Contents
Subscribe to newsletter