For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸŽ‡Quick Start

Getting Start with Rango Widget

Examples

Here you could explore different examples of using widget for different frameworks:

Installation

First you need to add @rango-dev/widget-embedded dependency.

# using yarn
yarn add @rango-dev/widget-embedded

# or using npm
npm install --save @rango-dev/widget-embedded

Then you could use this code snippet to easily add widget to your project.

Get Your API KEY

Our service is currently free. But to use our API, SDK or Widget, you need to open a ticket in users-support channel of Rango official Discord server. Describe what your project does, what is the website and what are the social media handles in the ticket, the blockchains you like to connect to, and your dApp domain if it's a website to enable CORS headers for your API key.

IFrame Version

If you want to use Rango widget directly in your html codes using IFrame, you code use code snippet below.

IFrame Limitations

Although using the iframe version is quite straightforward, we recommend utilizing the JavaScript package directly instead. This is because certain wallets, such as Phantom and MetaMask Mobile on iOS, have limitations when working with iframes due to security concerns, which may cause issues for users.

Last updated