Creates a user’s trade transaction; supports both Jito and non-Jito routing based on parameters.
Details of the trade request.
The wallet address of the user making the trade.
The address of the token being traded (source token).
The address of the token the user wants to receive (target token).
The amount of the source token to be traded, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number
The amount of Jito tip, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number
Serialized or encoded data representing the swap transaction
Additional SOL (in lamports) required to support the loan/trade operation, typically used for creating associated token accounts (ATAs). Can be provided as a string or a number
Unix timestamp of when the trade was initiated (in milliseconds). Can be provided as a string or a number
A digital signature of 'By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)
Details: trade:{source_token_address}{target_token_address}:{amount}:{loan_additional_sol}:{timestamp}:{jito_tip_amount}', signed by the user's wallet.
How many splits to use for the swap repay (capped at 10). Lower values increase chance of single-tx routing.
x <= 10The wallet address for the swap transaction, returned by the /trade/one-time-wallet endpoint.
If present, prefer a single‐tx non‐Jito route when possible; uses these fields for priority fee.
Successful trade transaction data response.