Skip to main content
Request a Stellar swap quote and, when sender is present, receive a prepared TransactionEnvelope for signing.

The endpoint

Required params

Optional params

Classic SDEX operations do not compose inside another Soroban contract. Keep platform=aggregator for contract-to-contract flows.

Request

Success response

Response fields

Execution planes

Errors

Edge cases

Verify

Before signing:
  • platform matches the execution plane your flow can execute.
  • transaction.envelopeXdr is present when your flow expects a TransactionEnvelope.
  • simulated is true when you rely on server-prepared Soroban resources.
  • Token amounts are raw atomic unit strings.
  • The quote was generated after the latest user change to token, amount, slippage, sender, or platform.