Tutorial — Bridges
Swap with deBridge DLN
deBridge's DLN is an intent-based liquidity layer — solvers compete to fill your order at the best price. The Tenzro SDK exposes
client.debridge() with token discovery, order creation, and status tracking.- Level
- Intermediate
- Time
- ~20 min
- Prerequisites
- EVM wallet
- Stack
- TypeScript
01
Connect and discover chains
List the chains DLN supports so you can pick valid chain_id values.
import { TenzroClient } from "tenzro-sdk";
const client = new TenzroClient({ endpoint: "https://rpc.tenzro.network" });
const debridge = client.debridge();
const chains = await debridge.getChains();
console.log(chains);02
Search for tokens on the source chain
Resolve token addresses for the order — required for both source and destination.
const usdcEth = await debridge.searchTokens("USDC", 1);
const usdcArb = await debridge.searchTokens("USDC", 42161);03
Create the cross-chain order
The client returns unsigned transaction data the caller signs and submits.
const order = await debridge.createTx(
1, // Ethereum
42161, // Arbitrum
usdcEth[0].address,
usdcArb[0].address,
"1000",
"0xRECIPIENT",
);
// Sign `order.tx` data with your EVM wallet and submit it on chain 1.04
Track until fulfillment
The status feed comes from deBridge's stats-api.dln.trade through the node.
const status = await debridge.getOrderStatus(order.order_id);
console.log(status);Related