Swap Price Impact
workflow.run_swap_price_impactLive price-impact quote for a Solana token swap: routed through Jupiter (the same aggregator real swaps use) across every pool it knows about, not a single-pool estimate. Works in both directions: side "sell" (default) sells a token into USDC or SOL, side "buy" spends USDC or SOL to buy the token. Use when user asks "how much slippage will I eat swapping X tokens?", "what will I actually get if I sell N tokens?" or "what do I get buying this token with 500 SOL?". Returns: side, outputAmount (quote asset when selling, tokens when buying), priceImpactPct, effectivePrice (quote asset per token in both directions), marketPriceUsd, liquidityUsd, routable (false + error if the size can't be routed at all).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Solana mint address of the token being sold or bought (base58) | |
| side | No | sell: sell the token for outputAsset (default). buy: spend outputAsset to buy the token. | |
| amount | Yes | Amount to swap, in human units (not raw base units): tokens when side is sell, units of outputAsset to spend when side is buy | |
| outputAsset | No | The quote asset: received when selling, paid with when buying. Default USDC. |