swap_via_nattswap
Swap tokens across 70+ chains via Li.Fi for bridging, gas funding, treasury routing, or rebalancing. Returns route with execution readiness and signable swap actions.
Instructions
Cross-chain token swap powered by Li.Fi across 70+ chains incl. Hyperliquid. USE WHEN: bridge, fund gas, treasury routing, or rebalance. RETURNS: Li.Fi route + execution_readiness + swap_actions_v1 + recommended_action. Prefer signing swap_actions_v1 in order. MCP free; on-chain swap costs gas + integrator fee. Side effects: MCP read-only until wallet signs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toChain | Yes | Destination Li.Fi chain id | |
| toToken | Yes | Destination token contract address on toChain | |
| slippage | No | Max slippage percent (e.g. 0.5 for 0.5%) | |
| fromChain | Yes | Source Li.Fi chain id (e.g. 1 Ethereum, 8453 Base, 42161 Arbitrum) | |
| fromToken | Yes | Source token contract address on fromChain | |
| toAddress | Yes | Recipient wallet 0x + 40 hex chars | |
| fromAmount | Yes | Amount in token smallest units (wei for 18-decimal tokens) | |
| fromAddress | Yes | Sender wallet 0x + 40 hex chars |