Execute a swap
execute_swapSign and broadcast a swap from the user’s wallet without asking them. Only works while the user has hands-free trading on (agent_permissions → handsFree), and within the same limits as prepare_swap; if it is off, tell the user how to turn it on (handsFree.tellUser). Spends real funds: check agent_permissions first, and reuse the idempotencyKey on any retry. Sell the native coin by its address from list_chains. If the wallet has no gas coin (see get_wallet), sell an ERC-20 with gasless=true. Set buyChainId to land the bought token on another chain; then follow the trade with swap_status. On Solana it trades from the agent Solana wallet (get_wallet → solana.address), with SOL, USDC or USDT on one side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | ||
| gasless | No | ||
| buyToken | Yes | ||
| sellToken | Yes | ||
| buyChainId | No | ||
| sellAmount | Yes | ||
| slippageBps | No | ||
| idempotencyKey | Yes |