The 0x Solana Swap API is available via priority access. Apply now to start building.
As part of our priority access release, we want to highlight some intentional differences in how our Solana API returns swap instructions, compared to other providers. These differences are important for integrators to be aware of, especially when composing and sending transactions manually.
SPL Tokens Only (No Token-2022):
During the alpha phase, our API supports only standard SPL tokens. We do not support Token-2022 extensions or any non-standard token types. If your integration requires Token-2022 features, please be aware this functionality is not yet available.
WSOL-Only for SOL:
In the alpha release, only the wrapped SOL (WSOL) SPL token (So11111111111111111111111111111111111111112) is supported. Native SOL accounts (So11111111111111111111111111111111111111111) are explicitly rejected.
All SOL inputs and outputs must use WSOL. Any response labeled “SOL” refers to WSOL. The API does not include unwrap or cleanup instructions—integrators are responsible for handling native SOL conversion if needed.
We currently return a single flat array of instructions. Here’s what’s currently included:
✅ Included Instructions
createIdempotent, so instructions won’t fail if an ATA already exists.N) depends on how many tokens the route involves, sometimes there may be 1 extra instruction for native SOL support (for certain DEXs).We’re planning to return these in distinct arrays (setupInstructions,
swapInstructions) in a future release.
🚫 Not Included (for Alpha)
VersionedTransaction)Solana v0 transactions are limited to 1232 bytes.
Each 0x swap transaction reserves a fixed portion of that space. When you add instructions around the swap (compute budget, transfers, close account, referral logic, etc.), you must ensure your serialized transaction remains under the limit.
We provide a detailed Integrator Byte Costs guide to help you compute this.