Build Unsigned EVM DEX or Cross-Chain Bridge Tx
build_bridge_txBuild an unsigned best-rate cross-chain EVM <-> Solana / EVM <-> EVM bridge transaction (LI.FI + deBridge DLN, ~3–30s, 0.40% fee) OR a same-chain EVM DEX swap (LI.FI) across Base, Arbitrum, Ethereum, Optimism, BSC, Polygon, Avalanche, and Solana.
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": {
"srcChainId": "<srcChainId>",
"dstChainId": "<dstChainId>",
"amount": "<amount>",
"senderAddress": "<senderAddress>"
},
"name": "build_bridge_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Human-readable amount to swap or bridge. | |
| dstToken | No | Destination token address. | |
| provider | No | Optional routing provider preference (default: auto best-rate). | |
| srcToken | No | Source token address (0x000...000 for native EVM, 11111111111111111111111111111111 for native SOL). | |
| dstChainId | Yes | Destination chain ID (may equal srcChainId for same-chain EVM DEX swaps). | |
| srcChainId | Yes | Source chain ID (8453 Base, 42161 Arbitrum, 1 Ethereum, 56 BSC, 7565164 Solana). | |
| srcDecimals | No | Optional source token decimals. | |
| senderAddress | Yes | Sender wallet address on source chain. | |
| recipientAddress | No | Recipient wallet address on destination chain. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | ||
| engine | No | ||
| orderId | No | ||
| provider | No |