TransactionEnvelope.
Prerequisites
Flow
1
Load token metadata
Call
/api/v1/tokens and store the canonical id, decimals, kind, and sacPeer.2
Choose the execution plane
Use
platform=aggregator for Soroban composition. Use platform=all only when a direct-user UI can accept either plane.3
Quote for display
Call
/api/v1/quote without sender for price display.4
Requote with sender at confirmation
Pass
sender to receive transaction.envelopeXdr. Keep simulate=true unless your client prepares Soroban resources itself.5
Refresh sequence, sign, submit
Set the sequence number from the live account, sign with the sender key, and submit through Stellar tooling.
Implementation Checklist
Minimal TypeScript Shape
Verify Before Signing
- The selected token has
degree > 0in/api/v1/tokens. - Amounts are raw atomic unit strings.
platformmatches the flow you can execute.transaction.envelopeXdris present.simulatedistruewhen you rely on the server-prepared Soroban footprint.- The quote was requested after the latest user change to token, amount, sender, slippage, or platform.

