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

Request Quote

Get routing quotes for swaps. The public response is intentionally slim: quoteId, expiresAtMs, and route summaries.

For same-chain routes, provider is a convenience alias when the route resolves to one public provider label. For cross-chain or other multi-step routes, prefer providers, bridgeProvider, and stepCount.

If no viable route exists for the requested pair, the endpoint still returns 200 with routes: [].

Endpoint: POST /api/v1/quote Auth: Required (Authorization: Bearer YOUR_API_KEY)

Request body

Field
Type
Required
Description
Example

fromChain

string

Yes

Source chain

solana

toChain

string

Yes

Destination chain

avax

tokenIn

string

Yes

Input token symbol

SOL

tokenOut

string

Yes

Output token symbol

WETH

network

string

No

mainnet or testnet

mainnet

tokenRefFromOverride

string

No

Canonical input token override

eip155:42161:erc20:0x...

tokenRefToOverride

string

No

Canonical output token override

eip155:43114:erc20:0x...

amount

string

Yes

Human-readable amount

100.00

slippageBps

integer

No

Slippage in basis points

75

recipient

string

No

Destination wallet address

0x1234...

Example

curl -X POST 'https://api.gateway.zert.com/api/v1/quote' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "fromChain": "solana",
    "toChain": "avax",
    "tokenIn": "SOL",
    "tokenOut": "WETH",
    "network": "mainnet",
    "amount": "100.00",
    "slippageBps": 75,
    "recipient": "0x1234567890123456789012345678901234567890"
  }'

Example response

Responses

Code
Description

200

Quote completed

400

Invalid request

401

Unauthorized

502

Quote-service unavailable or returned a non-client upstream failure

Zert API — Quote

Last updated