REST API

Overview

The /v1/quote endpoint provides token swap and bridge quotes with detailed transaction information for EVM-compatible chains. It returns both pricing information and the complete transaction data needed to execute the swap.

Endpoint

POST https://wheelx.fi/v1/quote

Request

Request Body Schema

interface QuoteRequest {
  from_chain: number;          // Source chain ID (e.g., 1 for Ethereum)
  to_chain: number;            // Destination chain ID
  from_token: string;          // Source token address
  to_token: string;            // Destination token address
  from_address: string;        // User's wallet address (source)
  to_address: string;          // Recipient address (destination)
  amount: number;              // Amount to swap (in smallest units)
  slippage?: number;           // Optional slippage tolerance (default: auto)
}

Example Request

Response

Response Schema

Example Response

Last updated