Skip to main content
Use routing controls to cap path search, split count, and response size for swap quotes.

Definition

The Aggregator builds candidate paths from the current pool snapshot, scores output for each path, and allocates the requested amount across one or more paths. The quote response reports the amount, price impact, and optional path breakdown.

Decision Table

Algorithm Choices

The Stellar Aggregator selects routing internally. Use maxSplits, maxHops, platform, and includePaths instead of an algorithm parameter.

Worked Example

Verify the result:
  • amountOut is present and non-zero.
  • paths is present when includePaths=true.
  • Each paths[].splitPpm value adds up to 1000000 across active paths.

Edge Cases