Embedding the Rhino.fi Widget (iframe)
You can easily embed the Rhino.fi Widget into any site using a simple<iframe>
. This allows you to integrate our widget without needing to install or bundle anything into your app.
Live Preview
See the widget in action:⚡ Quick Start
You can either customize your widget visually using our playground or use the example code below directly.Customize Your Theme
Use our playground to visually design and preview your widget, then copy the embed code.
YOUR_API_KEY
with your actual Rhino.fi API key.
Visit the Rhino Developer Portal
You can create a project and manage API keys there.
Customization
You can customize the widget’s appearance using URL query parameters. Here’s a quick overview:Query Param | Description | Example |
---|---|---|
apiKey | Required API key to authenticate | apiKey=YOUR_API_KEY |
mode | Widget mode (light or dark) | mode=dark |
theme | Theme configuration in JSON | theme={...} (URL-encoded JSON) |
chainIn | Default source chain | chainIn=ETHEREUM |
chainOut | Default destination chain | chainOut=BASE |
token | Default token | token=USDT |
recipient | Default recipient | recipient=0x0 |
amount | Default amount | amount=10 |
exclude | Exclude chains or tokens | exclude={...} (URL-encoded JSON) |
🎨 Theming
You can customize the appearance of the widget by passing a theme query param in URL-encoded JSON format. Supported Theme Properties🔒 Excluding Chains or Tokens
You can control which chains and tokens are available in the widget by using theexclude
option. This allows you to fine-tune the user experience by disabling entire chains or specific tokens.
Exclude Option Type
- To disable an entire chain, set its value to
false
. - To disable specific tokens for a chain, provide an array of token symbols to exclude.
Note: Token symbols must match exactly as defined in the bridge configuration.