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
^[0-9]+$The amount of Jito tip, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number
^[0-9]+$Serialized or encoded swap transaction data. The transaction must be provided unsigned.
Additional SOL (in lamports) required to support the loan/trade operation, typically used for ATA creation and account initialization. Recommended value: 0.012 SOL (actual requirement may be lower depending on existing accounts), with any unused amount refunded. Can be provided as a string or a number
^[0-9]+$Unix timestamp of when the trade was initiated (in milliseconds). Can be provided as a string or a number
^[0-9]+$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.
Number of trading accounts used to distribute the purchased tokens. Lower values: reduce transaction size, increase likelihood of single-transaction routing, improve compatibility with prefer_non_jito.
Example: If amount_out is <0.5% of token supply, split_repay = 1 is typically sufficient.
x <= 10The wallet address for the swap transaction, returned by the /trade/one-time-wallet endpoint.
When provided, prioritizes single-transaction (non-Jito) routing where possible. Uses the supplied priority fee fields to increase inclusion probability.
Works best with lower split_repay values, since smaller transactions are more likely to fit in a single transaction without requiring Jito bundling.
Successful trade transaction data response.