For the complete documentation index, see llms.txt. This page is also available as Markdown.

Request a Quote

Request a quote for a swap (amount, route, and pricing).

Request a quote for a swap from Zert's backend.

request

Fetches a quote for a swap given source chain, destination chain, tokens, amount, slippage, and recipient.

Parameters

  • body (QuoteRequest, required): Quote request.

    • fromChain (string): Source chain (e.g. arbitrum).

    • toChain (string): Destination chain.

    • tokenIn (string): Input token symbol or ref (e.g. USDC).

    • tokenOut (string): Output token symbol or ref (e.g. USDT).

    • network (string): Network (e.g. mainnet).

    • amount (string): Amount as string (e.g. "100.00").

    • slippageBps (number): Slippage tolerance in basis points (e.g. 75 = 0.75%).

    • recipient (string): Recipient address.

Returns

A Promise that resolves to QuoteResponse.

  • data.quoteId (string): Quote identifier.

  • data.expiresAtMs (number): Quote expiry in milliseconds.

  • data.routes (QuoteRoute[]): Route options (routeId, provider(s), expectedAmountOut, etc.).

  • meta.requestId (string): Request identifier.

  • meta.timestamp (string): Response timestamp.

Last updated