Swap (write)
gno_swapExecute a token swap on GnoSwap using exact input, checking policy and simulating first. Broadcasts with autonomous signing, or returns an approval token for human confirmation; if unfunded, provides address and faucet for funding.
Instructions
Swap on GnoSwap (router.ExactInSwapRoute) from the agent's own wallet. Simulates and checks policy, then broadcasts (autonomous signer), returns an approval_token for gno_confirm (human-approval signer), or returns the preview (simulate-only). The input token must first be approved to the router (gno_approve). If unfunded, returns status:needs_funding with the address and faucet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | fee tier 100/500/3000/10000 (default 500) | |
| minOut | Yes | minimum output (slippage floor), raw units | |
| tokenIn | Yes | input token pkgpath | |
| amountIn | Yes | exact input amount, raw units | |
| tokenOut | Yes | output token pkgpath | |
| deadlineSecs | No | seconds until expiry (default 120) |