Endpoint
Required parameters
| Param | Description |
|---|---|
| sell_token | Token symbol or token address. |
| buy_token | Token symbol or token address. |
| sell_amount | Human decimal sell amount, for example 0.01. |
| taker | Non-zero wallet address that will receive output. |
| slippage_bps | Max slippage in basis points. 50 means 0.50%. |
Optional parameters
| Param | Description |
|---|---|
| chain_id | Chain id. Defaults to the server’s configured chain. |
| max_hops | Route-depth hint; final route policy is controlled server-side. |
| permit2_owner | Non-zero Permit2 token owner for gasless or relayed ERC20 swaps. For gasless, this must equal taker. Also accepts permit2Owner and permitOwner. |
| swap_fee_bps | Integrator fee in basis points. Requires an integrator key. |
| swap_fee_token | Optional fee-token hint. Fees are charged in the token Rialto selects. |
| swap_fee_recipient | Ignored. The payout wallet is bound to the API key. |
Example
Key response fields
| Field | Description |
|---|---|
| chain_id | Chain id for the quote. |
| quote_id | UUID handle for the server-stored quote. Bound into the Permit2 witness as a bytes32 quoteId, so the signature is tied to this exact quote. |
| settlement | Execution mode: permit2 or allowance. |
| tx | Ready-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. |
| permit2 | EIP-712 typed-data payload. Present only for Permit2 settlement. For gasless quotes, permit2.owner is the token owner that must sign. |
| issues | Frontend blockers and execution hints for balance and allowance. |
| sell_token | Sell token address. |
| buy_token | Buy token address. |
| sell_amount | Raw integer sell amount in token smallest units. |
| buy_amount | Expected raw integer buy amount before slippage. |
| min_buy_amount | Slippage-protected raw minimum buy amount encoded into tx.data. |
| platform_fee | Platform fee breakdown. |
| integrator_fee | Present when an integrator fee was accepted for this key. |
| referral / referral_fee | Present when referral attribution or referral fee policy applies. |
| network_fee | Estimated transaction gas cost, if available. |
| taker | Recipient/taker address. |
| slippage_bps | Slippage tolerance used for quote. |
| route.legs | Ordered route legs and pools. |
The issues object
Inspect issues before submitting. It flags conditions that should block or gate execution.| Field | Meaning |
|---|---|
| issues.balance | Non-null when the taker lacks enough sell-token balance. Do not submit. |
| issues.allowance | Non-null when an ERC20 approval is needed before submitting tx. Approve issues.allowance.spender for at least sell_amount. |
| issues.simulationIncomplete | true when the backend could not complete all quote simulation checks. |
| issues.invalidSourcesPassed | Reserved field; currently an empty array. |
