bags_execute_trade
Swap tokens on Bags pools (requires $BOS) using a two-step confirmation: first call previews the trade and returns a confirmation token; second call signs and submits the on-chain swap.
Instructions
GATED WRITE: Swap tokens on Bags pools. Requires $BOS. Two-step: the first call returns a preview and a confirmation token; call again with that token to sign and submit. Returns a confirmed on-chain signature. SOL mint: So11111111111111111111111111111111111111112.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount of the input token, human-readable (e.g. 0.1 SOL). Default: 0.1 | |
| confirm | No | Confirmation token from the preview call. Omit on the first call. | |
| inputMint | No | Input token mint. Defaults to SOL: So11111111111111111111111111111111111111112 | |
| outputMint | No | Output token mint. Defaults to BOS: EkJuyYyD3to61CHVPJn6wHb7xANxvqApnVJ4o2SdBAGS | |
| slippageBps | No | Allowed slippage in basis points. Default 300 (3%). |