LogoLogo
  • 👋Introduction
    • Welcome
      • Actived Aggregators
      • Supported Chains
    • Vision
    • Upcoming development
    • Tokenomics
  • 📖User Guide
    • Get Started
      • How to connect a wallet
      • How to swap tokens
      • How to switch chains
    • FAQ
    • Disclaimer
  • 🤖Features
    • Staking
    • Trading Signals
    • Referral Program
    • Cross-chain Swap
    • LSD Aggregator
  • AMBASSADOR
    • Community Ambassador
      • Application Form
    • Trading Ambassador
      • Application Form
  • Widget
    • Getting Started
    • Example Themes
    • Widget Config Reference
  • SDK
    • Quick Start
    • SDK API
    • SDK Swap
  • API
    • Best Practice
    • API Reference
    • Cross Chain API
  • APPENDIX
    • 0xGen Wallet
    • Fee Overview
    • Media Kit
  • MORE
    • Github
    • Discord
    • Telegram
    • Twitter
    • Blog
Powered by GitBook
On this page
  1. Widget

Getting Started

This guide walks you through the steps to embed the swap widget in your web3 decentralized application (dApp)

PreviousApplication FormNextExample Themes

Last updated 2 years ago

Quick Install

There are four methods you can inject the Gen widget into your program.

Method one - Query Widget.js in your <script> tag.

  1. input <script> tag in your front-end code.

  2. change the script src to ""

  3. refresh the page and check whether the component is installed.

<script src="https://widget.0xgen.io/widget.js"></script>

Method two - Use <iframe> to inject the Gen widget into your program.

  1. input <iframe> to your front-end code.

  2. change the iframe src to ""

  3. refresh the page and check whether the component is installed.

<iframe src="https://widget.0xgen.io"></iframe>

We highly recommend using the custom mode to integrate wallets to make sure it works properly.

Method three - Install the widget by using the 0xGen SDK module.

Method four - Install the widget by using the 0xGen API.

https://widget.0xgen.io/widget.js
https://widget.0xgen.io
More Details
You can check the detail in the SDK section.
You can check the detail in the API section.