Skip to main content

Embedding the Rhino.fi SDA Widget (iframe)

You can embed the Rhino.fi SDA Widget into any site with a simple <iframe>. It provides a complete UI for creating Smart Deposit Addresses and settling deposits to a destination address, with no installation or bundling.

⚡ Quick Start

You can design your widget visually in 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.
Paste this HTML where you want the widget to appear:
Replace YOUR_PUBLIC_API_KEY with your Rhino.fi public API key, and 0xYOUR_RECIPIENT_ADDRESS with the address that should receive the funds.
Always use a public key in the widget. The key is part of the iframe URL, so anyone visiting your page can see it. Never use a secret key here: it gives access to your full transaction history. See Authentication.
Unlike the bridge widget, the SDA widget has no default configuration: chainIn, chainOut, token and recipient are all required.

Visit the Rhino.fi Console

You can create a project and manage API keys there.

Customization

You can customize the widget’s appearance and default values with URL query parameters:

🎨 Theming

You can customize how the widget looks by passing a theme query param as URL-encoded JSON. Supported theme properties:
Example with a custom theme: