⚠️ Deprecated — Use Nexus Widget Swaps
FastBridge has been removed from Avail Widgets.
All cross-chain bridging is now handled by Nexus Widget with config.mode = "swap". Nexus Widget automatically resolves the best route — including direct bridge paths — based on source and destination token/chain selection.
Migration
Replace any FastBridge usage with NexusWidget:
import { NexusWidget } from "@avail-project/widgets";
// Bridge USDC to Base — Nexus Widget resolves the optimal route automatically
<NexusWidget
config={{
mode: "swap",
destination: {
chain: 8453,
tokens: [{ address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", symbol: "USDC", decimals: 6 }],
},
}}
connectedAddress={address}
/>Install Nexus Widget
npm (recommended):
npm install @avail-project/widgets viem wagmi @tanstack/react-queryshadcn:
npx shadcn@latest add availproject/widgets/nexusRecommended skill to use instead
For integration guidance, refer to the Nexus Widget Swaps agent skill:
nexus-widget-swaps— Setup, prefill config, and callbacks for swaps and bridging with Nexus Widget.