Skip to main content
Choose the Stellar execution plane before building a quote that the user or contract will execute.

Definition

Stellar swaps can execute through Soroban contracts or Classic SDEX operations. The platform parameter restricts which plane the Aggregator searches and which envelope shape it can return.

Decision table

Classic SDEX operations do not compose inside another Soroban contract. Do not use platform=all for a contract-to-contract flow unless your app rejects Classic results.

Visual flow

Worked example

Verify the result:
  • transaction.envelopeXdr is present when sender is set.
  • platform in the response matches the execution plane you intended.
  • simulated is true when you rely on the prepared Soroban footprint.

Edge cases