docs.usdctofiat.xyz

@usdctofiat/offramp

Widget

Use @usdctofiat/offramp/widget for drop-in components.

Drop-in button

import { OfframpButton } from "@usdctofiat/offramp/widget";

<OfframpButton
  amount="100"
  currency="USD"
  platform="venmo"
  integratorId="your-integrator-id"
  referralId="TODO_SET_REFERRAL_ID"
/>;

Theme variables

The widget supports --offramp-accent, --offramp-bg, --offramp-ink, and --offramp-radius.

Event hooks

Sandbox mode: createDeposit is short-circuited and will show a mock response.

Quote preview: 100 USDC -> 100 fiat at 1.00x

Status: idle