Wallet Integration Guide
Overview
The BRIJ Widget SDK allows wallets and dApps to embed crypto on/off-ramp functionality directly into their applications. With just a few lines of code, you can provide your users with seamless fiat-to-crypto and crypto-to-fiat conversion powered by BRIJ’s network of ramp partners.
Features
- Easy Integration: Add on/off-ramp functionality with minimal code
- Customizable UI: Match the widget appearance to your application’s design
- Multi-Chain Support: Support for all major blockchain networks
- Flexible Modes: Enable on-ramp, off-ramp, or both
Getting Started
- Contact BRIJ to obtain your API key
- Add the SDK to your application using CDN or npm
- Initialize the widget with your API key and desired configuration
- Customize the theme to match your application’s design (optional)
Installation
1. Add the SDK
CDN
Add the SDK script to your HTML:
npm
Install via npm:
2. Initialize the Widget
Create a container element and initialize the SDK:
That’s it! The widget is now ready to use.
Configuration Options
Basic Configuration
Example with Options
Theme Customization
The widget supports two predefined themes (light and dark) with full color customization. Select a base theme with
mode, then override specific colors as needed.
Built-in Themes
Theme Options
General
Backgrounds
Text
Brand
Primary CTA Buttons
Secondary CTA Buttons
Menu
Note: Color values should be provided as hex codes without the # prefix (e.g., 'FF4500' for orange, 'FF000080' for 50% transparent red).
Examples
On-Ramp Only (Solana)
Enable only fiat-to-crypto conversion on Solana:
Off-Ramp Only (Multiple Chains)
Enable only crypto-to-fiat conversion on Ethereum and Base:
Full Configuration with Custom Theme
Supported Networks
The widget supports all BRIJ networks. Use the network codes when configuring
the chains option:
SOLANA- SolanaETHEREUM- EthereumBASE- BasePOLYGON- PolygonARBITRUM- ArbitrumOPTIMISM- OptimismBSC- BNB Smart ChainAVALANCHEC- Avalanche C-ChainBITCOIN- BitcoinTON- TONTRON- TRON


