Tenzro
Tutorial — Bridges

Aggregate bridges with Li.Fi

Li.Fi indexes 30+ bridges and 100+ DEXes. The Tenzro Li.Fi MCP wraps quoting, route building, and live status tracking so your agent always takes the best path.
Level
Intermediate
Time
~15 min
Prerequisites
EVM wallet
Stack
TypeScript · MCP
01

Open the Li.Fi MCP

Tenzro runs the Li.Fi MCP alongside the other ecosystem servers.

import { McpClient } from "tenzro-sdk";
const lf = new McpClient("https://lifi-mcp.tenzro.network/mcp");
02

Quote a transfer

The quote returns the best single route — bridge, DEX, fees, and gas estimate included.

const quote = await lf.call("lifi_get_quote", {
  from_chain: "ethereum", to_chain: "polygon",
  from_token: "USDC", to_token: "USDC",
  amount: "1000",
});
03

Execute the route

Send the transaction calldata that Li.Fi returns; the route may involve a swap before the bridge.

const exec = await lf.call("lifi_execute_route", { quote });
04

Track to completion

Poll the status endpoint until the destination balance confirms.

await lf.call("lifi_get_status", { txHash: exec.txHash });
Related
← All tutorials