Solana API

Built for serious
Solana teams

Swap instructions that fit your transaction flow. Multi-hop & multi-plex routing across 10+ liquidity sources, with the flexibility to build exactly what your users need.

99.97%

Uptime

10+

Liquidity sources

<250ms

Median quote response

Designed for scale

Flexible swap infrastructure that fits your transaction flow and your business, not the other way around.

Customize Txn Assembly

Designed to easily compose multi-step flows, giving you full control.

Advanced Routing

Multi-hop & multi-plex routes enabled with ALT support.

Monetization Controls

Capture trade surplus & unlock volume-based fees (coming soon).

Token2022 Support

Enables Solana’s new token extensions with metadata.

Shaped by teams
that know Solana

Designed & tested with the help of our Key Beta Partners.

Battle tested

Matcha Meta is a meta DEX aggregator built on 0x APIs. Originally created to gather real feedback from users in the wild, today it’s done $7B+ in volume and is used by whales and advanced traders across DeFi.

$7B+

Volume

17+

Chains

99.97%

Uptime

Ready to build on Solana API?

Embed Solana into your product with just a few lines of code.


const main = async () => {
  const sellAmount = 1_000_000; // 0.001 SOL, in lamports

  // fetch quote + swap instructions
  const response = await fetch("https://api.0x.org/solana/swap-instructions", {
    method: "POST",
    headers,
    body: JSON.stringify({
      token_in: "So11111111111111111111111111111111111111112", // SOL
      token_out: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC
      amount_in: sellAmount,
      slippage_bps: 100,
      taker: wallet.publicKey.toBase58(),
    }),
  });

  const quote = await response.json();
  console.log("Quote to swap 0.001 SOL for USDC: ", quote);
};
main();