Integrate the Universal API

Add 80+ cross-chain assets to your app. The Universal API provides just-in-time liquidity via an RFQ system.

1 min read
developers

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

  1. Your app requests a quote from the API
  2. A Merchant returns a guaranteed price
  3. User signs the quote (EIP-712 for EVM, transaction signing for Solana)
  4. Submit the signed order
  5. 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

Start trading instantly
Connect your wallet and trade any asset on your preferred chain.
Related articles
Start trading instantly
Connect your wallet and trade any asset on your preferred chain.