
Loading...

Loading...
Live Hyperlane Warp Route - signs with your own wallet on Ethereum (your wallet confirms every step; LCAI lands on LightchainAI after the relay).
import { createWalletClient, custom, parseEther } from "viem";
import { quoteBridgeFee, approveBridge, bridgeTransfer } from "lightnode-sdk";
// Signer on Ethereum mainnet (LCAI is an ERC-20 there):
const wallet = createWalletClient({ account, chain, transport: custom(window.ethereum) });
const fee = await quoteBridgeFee(pub, "ethereum", "lightchain-mainnet");
await approveBridge(wallet, parseEther("100")); // ERC-20 approve, once
await bridgeTransfer(wallet, {
from: "ethereum", to: "lightchain-mainnet",
amount: parseEther("100"), recipient: account.address, fee, // arrives NATIVE on chain 9200
});Scaffold a runnable bridge script into your project: npx lightnode add bridge.
Hold LCAI ERC-20 on Ethereum? Get some on Uniswap, then bridge it to native LCAI on LightChain.