build_cross_chain_consolidation
Build unsigned non-custodial CROSS-CHAIN bridge and swap calldata via LI.FI Diamond moving an ERC-20 or native token from from_network to a DIFFERENT destination to_network (settling in USDC, USDT, or destination NATIVE gas across base, arbitrum, optimism, polygon, ethereum, bsc, linea, avalanche). Read-only calldata builder: does not sign or broadcast transactions (unlimited free calls; includes a 1.00% atomic integrator fee). Returns JSON with from_network, to_network, approve_tx, bridge_tx, estimated_out_usd, and execution_duration_sec. Use this tool only when bridging across two DIFFERENT networks; use build_evm_dust_to_usdt_sweep for same-chain swaps.
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": {
"from_network": "<from_network>",
"token_in": "<token_in>",
"amount_in_raw": "<amount_in_raw>",
"sender": "<sender>"
},
"name": "build_cross_chain_consolidation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | 42-character hexadecimal EVM wallet address (`0x...`) initiating the bridge on `from_network` and receiving funds on `to_network`. | |
| token_in | Yes | 42-character hexadecimal ERC-20 token contract address (`0x...`) on `from_network` (or `0x0000000000000000000000000000000000000000` for native gas). | |
| to_network | No | Destination EVM chain to receive the bridged stablecoin or native gas. Defaults to `base`. | base |
| from_network | Yes | Source EVM chain where the token currently resides (must differ from `to_network`). | |
| amount_in_raw | Yes | Input token amount in atomic base units (wei integer formatted as a decimal string, e.g. `10000000` for 10 USDC). | |
| target_stable | No | Output asset on `to_network`: `USDC`, `USDT`, or `NATIVE` (for emergency cross-chain gas refuel). Defaults to `USDC`. | USDC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | ||
| to_network | Yes | ||
| from_network | Yes | ||
| estimated_out_usd | No |