swap_via_nattswap
Execute cross-chain token swaps via Li.Fi across 70+ chains, including Hyperliquid, for bridging, gas funding, treasury routing, or wallet rebalancing.
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. Prefer signing swap_actions_v1 in order. MCP free; on-chain swap costs gas + HyperNatt 0.25% integrator fee (Li.Fi may add its own cut — read quote.estimate.feeCosts). Side effects: MCP read-only until wallet signs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fromChain": "<fromChain>",
"toChain": "<toChain>",
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"fromAmount": "<fromAmount>",
"fromAddress": "<fromAddress>",
"toAddress": "<toAddress>"
},
"name": "swap_via_nattswap"
}
}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 |