Skip to main content
A quote is computed from live pool state. It is the exact route /v1/swap builds for the same parameters.

Parameters

Example

Response

The response also carries timing counters such as compute_time_us and a flow object. These describe the server’s work on the request and are not part of the contract. Ignore them.

Legs

Splits

When splits is non-empty, the transaction executes the split, not route. Each entry is one branch of the input: a set of pools connected through intermediate tokens. portion_bps is its share of the input. A branch’s legs are in execution order and carry their own amounts, so a branch can fan out across several pools at one hop and merge at the next. The totals in out_atoms and min_out_atoms always describe what the transaction delivers, whether it is the single route or the split.

Errors

See Errors for how to handle each one.