Execute Swap
Changed onExecute a swap transaction via router (Jupiter, 0x).
Example: connector: 'jupiter' network: 'solana-mainnet-beta' trading_pair: 'SOL-USDC' side: 'BUY' amount: 1 slippage_pct: 1 (optional; omit to use the connector's configured slippagePct) wallet_address: (optional, uses default if not provided) extra_params: {"approximateIfNoExactOut": false} # Solana routers
Returns: Transaction hash and swap details
Request
- Base URLhttp://localhost:8000
- URLhttp://localhost:8000/gateway/swap/execute
- AuthHTTP basic
Request body
Response
Successful Response
Changes
- info
added the new optional request property
- info
the
request property default value1was removed - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info