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
Optional parameters:
Choosing sell_amounts or buy_amounts
Choosing sell_amounts or buy_amounts
- Use
sell_amountswhen you know the exact sell amount. - Use
buy_amountswhen you know the exact buy amount.
Understand the Response
The response includes the winning solver price and a ready-to-broadcasttx object.
2. Approve Tokens
Approve theapprovalTarget before you broadcast the settlement transaction.
3. Broadcast the Transaction
Use thetx object from the quote response. Add current fee and nonce values before you sign it.
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.