Skip to main content
Coinbase Developer Platform
Coinbase Developer Platform

Everything developers need to build great apps on Base

"If you're building an onchain app you need to touch tokens at some point, and swap into them, so we wanted to reduce that from multiple weeks to like two lines of code. And that’s what we did."

Josh Nickerson
Josh Nickerson, Group Product Manager at Coinbase

$154.5k

In volume

224

Apps with Swap API

19.2k

Transactions
main.tsmain.py
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Execute the swap using the CDP account (recommended)
const { transactionHash } = await swapQuote.execute();
 
console.log(`Swap executed: ${transactionHash}`);
 
// Create and execute swap in one call
const result = await account.swap({
network: 'base',
toToken: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', // USDC
fromToken: '0x4200000000000000000000000000000000000006', // WETH
fromAmount: BigInt('1000000000000000000'), // 1 WETH
slippageBps: 100, // 1% slippage tolerance
});
 
console.log(`Swap executed: ${result.transactionHash}`);
console.log(`Received: ${result.toAmount} USDC`);

Set integration guidance

Listen to article—:——
Jan 2026·by 0x

The Coinbase Developer Platform (CDP) is a unified infrastructure suite that uses 0x under the hood to allow developers and enterprises to embed token swaps and other primitives in their crypto-native applications.

With a single API key, developers can access modular APIs and SDKs for payments, trading, wallets, on- and off-ramps, staking and validation, onchain data, and multi-chain support.

Designed for scalability and composability, builders can combine tools flexibly and manage tokens with ease, unified by Coinbase's trusted custody, compliance, and on-chain tooling.

Get integration guidance

Our suite of APIs has processed over 211 million transactions and $180 billion in volume from more than 14 million wallets.

Book a call

The challenge

Base, launched in 2023, is Coinbase's low-cost, developer-friendly chain and home to its onchain products

For Base to succeed, builders needed:

  • A unified toolkit to build and ship quickly
  • Native trading primitives that didn't require each team to integrate swaps from scratch

A goal of onboarding 10,000 developers in 2024 made the Coinbase Developer Platform critical to the Base ecosystem. Token swaps were key to this, and the CDP team identified swap functionality as a critical pain point, taking teams weeks to build from scratch.

CDP wanted to reduce that engineering time from weeks to just a few lines of code

The CDP team approached 0x to provide Base developers with a tool to embed production-grade token swaps within their apps, without vast resource or engineering overhead.

The solution

239ms

Best observed response time

<500ms

Median response time

Policy-Controlled Swaps

Agentic Wallets

Compatible

With other CDP products

Multi-plex, multi-hop trading

Via 0x API (v2)

Designed for performance and composability, CDP Swap API is powered by 0x, giving developers on Base access to market-leading pricing across millions of tokens acros 373+ liquidity sources, without the complexity.

By bringing 0x into CDP, developers can now:

  • Enable seamless token swaps in minutes
  • Build multi-chain DeFi tools for consumers or institutions
  • Create new user onboarding flows

All while 0x manages pricing, routing, liquidity, and smart contract infrastructure.

The results

Coinbase is known for a professional trading experience

In June 2025, the Coinbase team shipped the Coinbase Developer Platform's own Swap API, a simple way to embed production-grade token swaps with a few lines of code.

Powered by 0x Swap API under the hood, CDP Swap API is:

  • Backend-first: ideal for bots, agents, and fast-moving services
  • Programmatic: not reliant on front-end prompts or manual approvals
  • Fully managed: no infrastructure to deploy or contracts to maintain

Now, developers on Base can automate advanced flows like real-time liquidity management, portfolio rebalancing, or dynamic token allocation.

While the API handles quoting, signing, and routing under the hood, agents and services can focus on decision logic, not transaction plumbing.

0x Swap API is

Integral to CDP's
full developer stack

Swap API is foundational to the CDP stack and fully compatible with other CDP products so developers can build full-stack solutions fast. It can be used with:

  • Coinbase Onramp for fiat-to-token onboarding
  • AgentKit to let agents respond to onchain events
  • x402 to enable token-powered API payments

Since launch, the Swap API has been integrated into 264 apps through the Coinbase Developer Platform, and has powered $181.8k in volume across 22.6k transactions.

Partnership

Coinbase's drive to deliver best-in-class swaps with the widest token coverage led them to 0x

To expand into the onchain economy, Coinbase needed a swap provider with:

  • DEX market expertise
  • Proven API infrastructure
  • Reliable, secure, enterprise-grade performance

That search led to 0x. Today, 0x powers Coinbase's end-to-end swap infrastructure throughout its product portfolio:

  • Base App: SocialFi, custom token routing, and gasless swaps
  • Coinbase App: onchain DEX trading and full token coverage
  • Coinbase Developer Platform: Swap API for teams building on Base

Coinbase has accelerated its onchain leadership in part through its long term partnership with 0x.

If you lead product or business development at an exchange and want to explore how 0x can power decentralized trading in your app, contact us.

Discuss your use case

Join Coinbase and hundreds of exchanges using 0x APIs for enterprise-grade liquidity.

Book a call