Hosting MARS

Host MARS and reap the benefits!

MARS Widget

Looking to provide added value to the visitors of your website and be rewarded for your efforts? MARS is available in widget form that can be easily embedded in a website with the following iframe.

MARS customizable iframe

<iframe class="custom-transform" allow="clipboard-read; clipboard-write self https://app.eclipsedefi.com/widget" height="680px" width="360px" src="https://app.eclipsedefi.com/widget"></iframe>

Add your desired referral address

You can append a wallet address to the widget URL to reap referral benefits. Then for any MARS listing generated using the widget on your page, you will collect a 10% referral commission deposited into the wallet you specified.

Simply append "?ref=walletaddress" (replace "walletaddress" with your desired referral wallet address) to the widget URL in the 'src="URL"' section of the iframe like so:

<iframe class="custom-transform" allow="clipboard-read; clipboard-write self https://app.eclipsedefi.com/widget" height="680px" width="360px" src="https://app.eclipsedefi.com/widget?ref=0x0aaA18c723B3e57df3988c4612d4CC7fAdD42a34"></iframe>

Customize the widget

Some of the colors within the widget can also be customized by adding additional qualifiers to the src="URL" portion of the iframe after the referral address. The border, inner background, and search bar colors may be set to any color hex code with the construction demonstrated below. The footer and logo colors may also be set to either black or white.

bgColor = background/border color bgInnerColor = inner background color searchbarColor = search bar color

footerColor = footer color (MARS - powered by Eclipse) logoColor = logo color (Eclipse logo at top of widget)

That was easy!

MARS was developed into a simple plug-and-play widget so it can be spread far and wide. Let us know if you have chosen to host MARS on your website so we can promote the partnership.

If you have any trouble implementing the widget, open a ticket in our Discord

Last updated