get_composer_quote
Zero-custody atomic cross-chain DeFi action bundling via LI.FI Composer (bridge/swap + ordered destination contract calls). Validates wallet balance/allowance, returns exact-amount ERC-20 approval calldata when needed, and never signs or broadcasts. Supports dry_run: true.
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": {
"fromChainId": "<fromChainId>",
"toChainId": "<toChainId>",
"fromToken": "<fromToken>",
"toToken": "<toToken>",
"toAmount": "<toAmount>",
"walletAddress": "<walletAddress>",
"contractCalls": "<contractCalls>"
},
"name": "get_composer_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | When true, validates request and fees without calling LI.FI. | |
| toToken | Yes | Destination token contract address consumed by contractCalls. | |
| slippage | No | Max slippage percentage (default 0.5). | |
| toAmount | Yes | Required destination token amount in base units. | |
| fromToken | Yes | Origin token contract address (0x0000...0000 for native). | |
| toChainId | Yes | Destination EVM chain ID (1, 10, 137, 8453, 42161, 59144). | |
| fromChainId | Yes | Origin EVM chain ID (1, 10, 137, 8453, 42161, 59144). | |
| contractCalls | Yes | ||
| walletAddress | Yes | Customer EVM wallet address. |