Try Best-Rate-Swap Feature on Your Web3.0 Site
Tags: webdev, react, javascript, html
Published: 2022-07-11 07:04:35

![Header](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n7xuxz4jgwt85g7sd5h3.png)

Today I'd like to show you how to implement the Arken widget on your site, giving a seamless swapping experience for token holders in a few lines of code.

```
<html>
  <head></head>
  <body>
    <div
      id="arken-root"
      data-chain="bsc"
      data-mode="dark"
      data-theme_color=""
      data-theme_text_color=""
      data-base_token_address=""
      data-quote_token_address=""
      data-external_top_token_address="[]"
      data-custom_image_token="{}"
      data-widget_type=""
      data-graph_range="1"
      data-max_width="637px"
      data-height="42.39%"
      data-background_color_light=""
      data-background_color_dark=""
    ></div>
    <script async src="https://widget.arken.finance/widget.js"></script>
  </body>
</html>
``` 

Arken Finance aims to contribute to and work on ambitious initiatives, and to advance the DeFi sector for the benefit of everyone. We want to see our fellow DeFi projects providing easy and simple user experiences to your users too!

Thus, you can now get Arken's "charts and swapbox widget" to integrate it directly on your website at no cost. Our widget is simple, beautiful, and customizable, giving a seamless swapping experience to your users. Here are the steps:

Or, Try It Yourself [here](https://arken.finance/KwV1dr).


### How to Get Arken's WIDGET on Your Site

**Step1**: Go to Arken's [Widget Customization Dashboard](https://arken.finance/KwV1dr).

**Step2: Customize the display type of the widget.** There are 3 options available: 1) Graph Only, 2) Swapbox Only, and 3) Graph and Swapbox. Select the widget type and the default graph range that you prefer. You can also adjust the width and height of the widget to fit your site.

![Step2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oj3ngfoahx0uy1ge59tx.png)

**Step3: Select default tokens.** Click on the 'Swap' bar at the top. Choose the network of your token. Then, select the default quote token and default base token by typing the token name or inserting the token contract address and clicking the 'add item' option. You can also use the custom image by pasting the image URL directly into the CUSTOM IMAGE URL box.

![Step3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3vax1z2dw3ccfpbwcobu.png)

**Step4: Style your widget.** Go to the 'Style' bar and customize the theme (light, or dark) and color scheme that you want.

![Step4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gfoi0sv85l4umrqvd9d4.png)

**Step5:** Click the 'Get Code' button.


![Step5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2so8n12n8fwka99o40wy.png)

**Step6:** 2 sets of codes are available; in HTML and React. Now, you can use the codes for your landing page or designated place. Now you are all set!


![Step6](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ezela76irbzaa6tyvxws.png)


---
Keen to join our community? Visit:
- Discord: https://discord.gg/GPWDsEAaE7
- Twitter: https://twitter.com/ArkenFinance
- Telegram: https://t.me/arkenfinance
- Facebook: https://www.facebook.com/arkenfinance