Skip to main content

Install

npm install 0xtrails

Add the Widget

import { TrailsWidget } from '0xtrails/widget'

export function Checkout() {
  return (
    <TrailsWidget
      apiKey="YOUR_API_KEY"
      mode="pay"
      toAddress="0xYourMerchantAddress"
      toAmount="10"
      toChainId={8453}
      toToken="USDC"
    />
  )
}
User pays with any token from any chain → You receive exactly 10 USDC on Base.
Get an API key: Join the Trails Telegram to request access.

Starter Templates

Next Steps


Full reference: SDK Configuration · API Reference · Hooks