Skip to main content

Endpoint

GET /quote
Auth: requires an API key with quote access. Returns the best route, expected output, route legs, platform fee, estimated network fee, and an executable transaction for an exact-input swap.

Required parameters

ParamDescription
sell_tokenToken symbol or token address.
buy_tokenToken symbol or token address.
sell_amountHuman decimal sell amount, for example 0.01.
takerNon-zero wallet address that will receive output.
slippage_bpsMax slippage in basis points. 50 means 0.50%.
slippageBps is also accepted as an alias for slippage_bps.

Optional parameters

ParamDescription
chain_idChain id. Defaults to the server’s configured chain.
max_hopsRoute-depth hint; final route policy is controlled server-side.
permit2_ownerNon-zero Permit2 token owner for gasless or relayed ERC20 swaps. For gasless, this must equal taker. Also accepts permit2Owner and permitOwner.
swap_fee_bpsIntegrator fee in basis points. Requires an integrator key.
swap_fee_tokenOptional fee-token hint. Fees are charged in the token Rialto selects.
swap_fee_recipientIgnored. The payout wallet is bound to the API key.

Example

API_KEY='rialto_live_example.redacted_secret'

curl -sS 'https://rialto-trade-api.rialto.xyz/quote?sell_token=WETH&buy_token=USDC&sell_amount=0.01&taker=0x1111111111111111111111111111111111111111&slippage_bps=50' \
  -H "Authorization: Bearer $API_KEY"

Key response fields

FieldDescription
chain_idChain id for the quote.
quote_idUUID handle for the server-stored quote. Bound into the Permit2 witness as a bytes32 quoteId, so the signature is tied to this exact quote.
settlementExecution mode: permit2 or allowance.
txReady-to-send transaction object. In direct flow, send this from the taker wallet after any required approval or signature step. In gasless flow, Rialto submits this transaction after /gasless/submit.
permit2EIP-712 typed-data payload. Present only for Permit2 settlement. For gasless quotes, permit2.owner is the token owner that must sign.
issuesFrontend blockers and execution hints for balance and allowance.
sell_tokenSell token address.
buy_tokenBuy token address.
sell_amountRaw integer sell amount in token smallest units.
buy_amountExpected raw integer buy amount before slippage.
min_buy_amountSlippage-protected raw minimum buy amount encoded into tx.data.
platform_feePlatform fee breakdown.
integrator_feePresent when an integrator fee was accepted for this key.
referral / referral_feePresent when referral attribution or referral fee policy applies.
network_feeEstimated transaction gas cost, if available.
takerRecipient/taker address.
slippage_bpsSlippage tolerance used for quote.
route.legsOrdered route legs and pools.

The issues object

Inspect issues before submitting. It flags conditions that should block or gate execution.
FieldMeaning
issues.balanceNon-null when the taker lacks enough sell-token balance. Do not submit.
issues.allowanceNon-null when an ERC20 approval is needed before submitting tx. Approve issues.allowance.spender for at least sell_amount.
issues.simulationIncompletetrue when the backend could not complete all quote simulation checks.
issues.invalidSourcesPassedReserved field; currently an empty array.

Notes

Quotes depend on live liquidity and can go stale quickly. Request a fresh quote if the user waits. The exact amounts and route legs depend on live liquidity at request time. The next page covers how to execute the returned transaction.