Skip to main content
This guide shows how to request a quote, approve tokens, and broadcast the settlement transaction.
What you will build: A complete trade flow that uses solver auction liquidity.Time required: 10-15 minutesPrerequisites: Basic knowledge of EVM wallets and token approvals.

How It Differs from the RFQ API

The RFQ API provides firm market maker quotes with guaranteed execution and fill. The Aggregation API runs a solver auction across on-chain liquidity sources. It supports more tokens but requires a slippage tolerance.

1. Request a Quote

Required parameters: Optional parameters:
  • Use sell_amounts when you know the exact sell amount.
  • Use buy_amounts when you know the exact buy amount.
The following example sells 1 WETH for USDC on Ethereum:

Understand the Response

The response includes the winning solver price and a ready-to-broadcast tx object.
Always approve the approvalTarget from the current quote. Do not use the settlementAddress as the approval target.

2. Approve Tokens

Approve the approvalTarget before you broadcast the settlement transaction.
See Token Approvals for the complete allowance flow.

3. Broadcast the Transaction

Use the tx object from the quote response. Add current fee and nonce values before you sign it.
Broadcast the transaction before expiry. The transaction reverts after that time.

4. Confirm Settlement

Wait for the transaction receipt through your RPC provider.

Full Example

Next Steps

Token Approvals

Set up ERC-20 approvals before trading.

RFQ API Quickstart

Compare solver competition with firm market maker pricing.