Wallet Actions
Advanced swap
Execute a synchronous Solana token swap: fetch a quote, sign via the enclave, submit to Jito, and return the signed transaction and quote details — all in a single request.
post/v1/wallets/{wallet_id}/experimental/solana/advanced-swap
Path parameters
wallet_idstring required
ID of the wallet.
Headers
privy-app-idstring required
ID of your Privy app.
privy-authorization-signaturestring
Request authorization signature. If multiple signatures are required, they should be comma separated.
Request body
Example request
{
"amount": "1000000000",
"caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"fee_recipient": "FeeAcct...",
"input_token": "So11111111111111111111111111111111111111112",
"output_token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"platform_fee_bps": 100,
"slippage_bps": 50
}Response
Swap executed successfully.
Example response
{
"in_amount": "1000000000",
"input_token": "So11111111111111111111111111111111111111112",
"min_out_amount": "172632500",
"out_amount": "173500000",
"output_token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"platform_fee": {
"amount": "1735000",
"bps": 100,
"token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
},
"provider": "dflow",
"signed_transaction": "AQAAAA...base64...",
"slippage_bps": 50,
"submission_status": "accepted",
"transaction_hash": "5K4f...base58sig"
}