thirdwebPlayground
Payments

Buy Crypto Component

Embeddable component for users to purchase any cryptocurrency for top-ups and more with fiat or crypto-to-crypto swaps

Documentation

Buy Crypto

Inline component that allows users to buy any currency.
Customize theme, currency, amounts, payment methods and more.

Code
import { BuyWidget } from "thirdweb/react";

function App() {
  return (
    <BuyWidget
      client={THIRDWEB_CLIENT}
      title="Get Funds"
      tokenAddress={NATIVE_TOKEN_ADDRESS}
      chain={arbitrum}
      amount={toWei("0.002")}
    />
  );
}
Preview