Unibot Documentation
TradeReferralsTelegram
  • 👋Welcome
  • 🔗Verified Links
  • Developer Docs
    • ⛓️Deeplink API
    • 🪄iFrame API
    • 📲TG Mini App API
Powered by GitBook
On this page
  1. Developer Docs

iFrame API

Integrate Unibot trading widget to your website using our iFrame. Gain referrals from anyone who uses the iFrame, and earn fees from all transactions.

PreviousDeeplink APINextTG Mini App API

Last updated 12 months ago

Integrate: Embed url inside an iframe on your website.

Customize: You can use the following url params to customize the iFrame.

  • Url Param: &chain={token_chain} : Sets iFrame to chain. Valid Options: ethereum | base | arbitrum | solana Default Value: ethereum

  • Url Param: &token={token_address} : Sets chart (if enabled) and swap token to token.

  • Url Param: &swapMode={mode} : Sets iFrame to a trade mode. Valid Options: swap | limit | dca | copytrade | bridge Default Value: swap

  • Url Param: &swapType={swap_type} : Sets iFrame to buy or sell a swap type. Valid Options: buy | sell Default Value: buy

  • Url Param: &channel={bool} : Show channel widget. 1 for yes, 0 for no. Valid Options: 1 | 0 Default Value: 0 (hidden)

  • Url Param: &chart={bool} : Show chart. 1 for yes, 0 for no. Valid Options: 1 | 0 Default Value: 0 (hidden)


Example #1:

HTML
<iframe src="https://unibot.app/iframe?channel=1" title="Unibot Trade Widget"></iframe>

Example #2:

HTML
<iframe src="https://unibot.app/iframe?channel=1&chart=1" title="Unibot Trade Widget"></iframe>

Trading Section with channel (channel=1) i.e.

Trading Section with channel and chart (channel=1&chart=1) i.e.

🪄
https://unibot.app/iframe?channel=1
https://unibot.app/iframe?channel=1&chart=1
https://unibot.app/iframe
Example #1 Screenshot
Example #2 Screenshot