Skip to main content
The Checkout Widget enables wallet-based deposits with built-in cross-chain routing and DeFi token swapping capabilities.

Try the Demo

Try out the checkout flow

Integration Guide

Add to your app
Key features include:
  • Cross-chain deposits: Automatic routing between different blockchain networks
  • Real-time quotes: Live pricing and gas estimates
  • Customizable theming: Full control over appearance and branding
  • Transaction tracking: Real-time status updates with block explorer links
Route Widget Flow

How it Works

The widget connects to the connected wallet and allows user to:
  1. Select token
  2. Enter amount to spend
  3. Check quote execution quote and parameters
  4. Execute operation and track progress including cross-chain execution

Integrate

1

Install the package

Install the widget:
2

API key

You can get an API key from the Developer Portal.
3

Basic implementation

Import and configure the widget.
Any of the tokens or nontokenized positions can be used as tokenOut
4

Setup Web3 providers

The widget requires Wagmi and React Query providers. Set up your app’s root component:
5

Theme customization

The widget accepts a complete Chakra UI v3 SystemConfig for theming.
For advanced theming, refer to the Chakra UI theming documentation.

Configuration Props

CheckoutConfig Properties

The following checkout config exists:

CheckoutModalProps

The CheckoutModal expands CheckoutConfig with modal-related properties and callbacks:

Supported Networks

The widget supports deposits across all networks:
  • Ethereum (Chain ID: 1)
  • Base (Chain ID: 8453)
  • Arbitrum (Chain ID: 42161)
  • Optimism (Chain ID: 10)
  • Polygon (Chain ID: 137)
  • Avalanche (Chain ID: 43114)
  • BSC (Chain ID: 56)
  • And many more

Learn more

Updated