Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fluton.io/llms.txt

Use this file to discover all available pages before exploring further.

import { FlutonClient } from "@fluton/sdk";

const fluton = new FlutonClient({
  chains: {
    ethereum: { chainId: 1, rpcUrl: "…" },
    arbitrum: { chainId: 42161, rpcUrl: "…" },
  },
  signer: ethersOrViemSigner,
});

const quote = await fluton.bridge.quote({
  fromChain: "ethereum",
  toChain: "arbitrum",
  token: "USDC",
  amount: "100",
});

const res = await fluton.bridge.execute(quote);

// for tracking
fluton.bridge.track(res.intentId, (s) => console.log(s.status));