preflight_safe_swap
Discover and prepare a risk-checked Solana swap through Preflight SafeSwap. Use this when an autonomous agent needs a USDC-paired Solana swap with explicit route, risk, slippage and fee disclosure. The paid HTTP endpoint costs $0.005 USDC and embeds a disclosed 3 bp execution fee.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taker | Yes | Solana signer wallet | |
| token_in | Yes | Solana input token mint | |
| amount_in | Yes | Amount in input-token base units | |
| token_out | Yes | Solana output token mint | |
| slippage_bps | No | ||
| referrer_usdc_account | No | Optional existing USDC token account that receives 1 bp of the 3 bp fee |