| title | Quickstart |
|---|---|
| description | Integrate Trails in under 5 minutes |
| sidebarTitle | Quickstart |
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**: Sign up and create an API key on the [Trails Dashboard](https://dashboard.trails.build/landing) Try it now Starter kit Starter kit Stablecoin payments, merchant integration Cross-chain token swaps Protocol deposits, trustless deposit addresses, chain onboarding, built-in onramps, and more Integrated DeFi Yield DepositsFull reference: SDK Configuration · API Reference · Hooks