Bridge
Buy widget component
The Buy widget component makes it easy for users to purchase crypto tokens in your app
- Purchase crypto tokens with fiat (credit/debit cards)
- Cross-chain token swaps across 90+ blockchains
- Display product information (title, description, image)
- Customizable UI with dark and light mode support
- Display fiat values in multiple currencies
You will need a thirdweb project client id to use the BuyWidget component. You can get your clientId by creating a project in the thirdweb dashboard.
Make sure to wrap the component containing BuyWidget with the ThirdwebProvider component.
You can prefill the widget with a specific token by passing the tokenAddress prop.
By default, the connected wallet address receives the purchased tokens.
You can set receiverAddress prop to send the purchased tokens to a different address.
BuyWidget Component
View the API reference for the BuyWidget component
Buy Widget Playground
Try out the Buy Widget in our live playground