swap_via_nattswap
Execute cross-chain token swaps across any Li.Fi-supported chain pair for bridging, gas funding, or treasury routing. Returns route with step-by-step execution instructions.
Instructions
Cross-chain token swap via Li.Fi across Li.Fi-routed chains (any pair — not limited to BTC/USDC). USE WHEN: bridge, fund gas, treasury routing. NOT WHEN: Decision Core BTC reads (get_btc_usdc_signal / trap / hunt) — vault signals stay BTC/USDC only. RETURNS: Li.Fi route JSON + step-by-step agent execution instructions + recommended_action. MCP free; on-chain swap costs gas + integrator fee. Side effects: MCP read-only until wallet signs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromChain | Yes | Source Li.Fi chain id (e.g. 1 Ethereum, 8453 Base, 42161 Arbitrum) | |
| toChain | Yes | Destination Li.Fi chain id | |
| fromToken | Yes | Source token contract address on fromChain | |
| toToken | Yes | Destination token contract address on toChain | |
| fromAmount | Yes | Amount in token smallest units (wei for 18-decimal tokens) | |
| fromAddress | Yes | Sender wallet 0x + 40 hex chars | |
| toAddress | Yes | Recipient wallet 0x + 40 hex chars | |
| slippage | No | Max slippage percent (e.g. 0.5 for 0.5%) |