Skip to main content
Check the HTTP status and retain the full response body. Errors from the aggregator itself return { "code": "...", "error": "..." }. Branch on code, which is a stable category; the error text is for humans and may change. Responses from an intermediary, such as a proxy or gateway, can have a different shape, so check the HTTP status first.

Error codes

Recovery by symptom

Do not turn a failed executable quote into a signable transaction by ignoring simulation errors. Pricing without a sender is useful for an estimate, not proof that the route can execute.

After submission

Distinguish RPC acceptance from successful on-chain execution. For uncertain responses, look up the transaction hash before retrying. Refresh the account sequence for a new transaction. A slippage failure requires a new quote and user decision. Do not silently increase tolerance. For a multi-transaction liquidity plan, inspect which steps succeeded and continue from the asset actually held.

Report an issue

Include timestamp, deployment, request arguments, HTTP status, complete response body, and transaction hash when available. Record the snapshot or simulation ledger and the returned fallback metadata. Never include secret keys or seed phrases. Integration guide · Quote phases