πQuick Start
Getting Start with Rango Widget
Last updated
import { Widget, WidgetConfig } from "@rango-dev/widget-embedded";
export default function App() {
const config = {
// This API key is only for test purpose. Don't use it in production.
apiKey: 'c6381a79-2817-4602-83bf-6a641a409e32',
// This project id is only for test purpose. Don't use it in production.
// Get your Wallet Connect project id from https://cloud.walletconnect.com/
walletConnectProjectId: 'e24844c5deb5193c1c14840a7af6a40b',
}
return (
<div className="App">
<Widget config={config} />
</div>
);
}<div id="rango-widget-container"></div>
<script src="https://api.rango.exchange/widget/iframe.bundle.min.js"></script>
<script defer type="text/javascript">
const config = {
// This API key is only for test purpose. Don't use it in production.
apiKey: 'c6381a79-2817-4602-83bf-6a641a409e32',
// This project id is only for test purpose. Don't use it in production.
// Get your Wallet Connect project id from https://cloud.walletconnect.com/
walletConnectProjectId: 'e24844c5deb5193c1c14840a7af6a40b',
}
rangoWidget.init(config)
</script>