Wallet
Trade tokens
Swap tokens via the Jupiter aggregator
POST
Executes a token swap using the Jupiter aggregator, automatically routing through the best available liquidity pools.
Requires authentication via Bearer token. Trading must be enabled in the agent’s policy (
allowTrading: true).Request body
Source token to swap from. Accepts a token symbol (e.g.,
USDC) or mint address.Destination token to swap to. Accepts a token symbol (e.g.,
SOL) or mint address.Amount of the source token to swap.
Maximum acceptable slippage in basis points.
50 equals 0.5%. The transaction fails if the actual slippage exceeds this value.Response
true when the trade succeeds.Errors
| Status | Description |
|---|---|
400 | Invalid token symbol, amount, or slippage value |
401 | Missing or invalid Bearer token |
403 | Trading disabled by agent policy |
429 | Rate limit exceeded |