Gateway Swaps
Execute Swap Quote
Changed onExecute a quote returned by /swap/quote, by its quote_id.
The two-step flow: quote, decide, then commit to THAT quote. /swap/execute prices again at execution, which discards the price the caller saw — the whole reason dflow, titan and 0x return a held quote. Router connectors only; a pool-scoped connector has no cached quote to execute and is rejected rather than quietly re-priced.
Example: connector: 'jupiter' network: 'solana-mainnet-beta' quote_id: '<quote_id from /swap/quote>' trading_pair: 'SOL-USDC' side: 'SELL' amount: 0.01
Returns: Transaction hash and what the swap actually moved
post/gateway/swap/execute-quote
Request
- Base URLhttp://localhost:8000
- URLhttp://localhost:8000/gateway/swap/execute-quote
- AuthHTTP basic
Request body
Response
Successful Response
Changes
- info
endpoint added
- info