Skip to content
caliper ui pro docs

Multi chain swap

Swap one asset for another across networks, with a quote.

Pro

Treasury wallet

Move funds between networks before the 31 October payroll run

You pay

You receive

0.0
Rate and costs
Network and service fee
—
Route
Bridge · about 4 min
Slippage
Minimum received
—

Estimates only, based on the prices supplied. Sample interface for demonstration.

When to use

  • Showing a swap with fees and route.

When not to use

  • The user hasn't checked the quote.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/multi-chain-swap

Adds its 11 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

MultiChainSwap

4 props
PropTypeDefault
chains *readonly SwapChain[]—
tokens *readonly SwapToken[]—
onReview *(quote: SwapQuote) => SwapResult | Promise<SwapResult>—
classNamestring—

Keyboard

  • Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It exposes status semantics, with aria-label, aria-hidden and aria-busy kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/multi-chain-swap.md

The index of every part is at /llms.txt.

More in Specialty blocks