Integrate the Universal API
Add 80+ cross-chain assets to your app. The Universal API provides just-in-time liquidity via an RFQ system.
The Universal API lets you integrate 80+ cross-chain assets into your wallet, DEX, or dApp. It uses an RFQ (request-for-quote) system where Merchants provide just-in-time liquidity.
How it works
- Your app requests a quote from the API
- A Merchant returns a guaranteed price
- User signs the quote (EIP-712 for EVM, transaction signing for Solana)
- Submit the signed order
- Merchant executes the trade, user receives tokens
Base URL
Without API key: https://www.universal.xyz/api/v1
With API key: https://relayer.universal.xyz/api
Endpoints
POST /quote - Request a price quote
POST /order - Submit a signed order
Quick example
const quote = await fetch('https://www.universal.xyz/api/v1/quote', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
type: 'BUY',
token: 'BTC',
pair_token: 'USDC',
blockchain: 'BASE',
slippage_bips: 20,
user_address: '0x...',
pair_token_amount: '1000000',
}),
});Supported chains
- Base
- Arbitrum
- Polygon
- Solana
- World
Monetization
Add referrer_address and referrer_bps to your quote requests to earn fees on every trade.
Rate limits
- Without API key: 10 requests/minute
- With API key: 100 requests/minute
Full documentation
Read the complete API reference
Support
Email dev@universal.xyz or join Discord
Introducing the Universal V4 Hook
The most capital-efficient way to enable trading of wrapped assets on your app. Atomic swaps via Uniswap V4.
Getting Started with the Universal SDK
The Universal SDK handles quote requests, signing, and order submission. Viem-compatible, fully typed.
Universal Protocol Architecture
A technical overview of Universal: uAssets, Merchants, Coinbase Prime custody, and the just-in-time liquidity model.