🌟Widget
Integration The recommended method for integration is via an iframe of our page, as demonstrated below:
<iframe title="Oraclez DEX Widget"
name="Oraclez DEX Widget"
src="https://app.oraclez.xyz?chain=ethereum"
width="450px"
height="565px"
allow="fullscreen"
marginwidth="0"
marginheight="0"
frameborder="0"
scrolling="no"
loading="eager">
</iframe> The widget is responsive, allowing you to adjust the width and height as needed, with the widget automatically adjusting to fit the space. Additionally, you can customize the widget by adding the following parameters to the query URL:
chain
default chain (e.g., chain=ethereum). This parameter is required.
from
token to sell (e.g., from=0x0000000000000000000000000000000000000000 to use the gas token for the chain).
to
token to buy (e.g., to=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 to use a specific token).
background
color of the background (e.g., background=rgb(10,20,30))
Note: Only tokens that are part of our token lists are accepted in from and to to prevent scammers from linking to Oraclez with fake tokens loaded.
Last updated