Developer Resources

Widgets

Add Fortuna TrustScore cards to any website. Script embed is the easiest setup and supports position, mode, size, and shadow.

Widget Playground

Configure options, preview sample or real widget data, and copy generated embed code.

Controls

Using sample pool address: 0x517537fc8299db178dd0770beb7b4dd47ad0d726

Mode
Size
Position

Preview

FortunaFortuna TrustScore

Token Name (TOK)

Network

refresh3 days ago

Open report
Good

68

/100

Generated Script Embed (Recommended)

Recommended integration method. Use this on platforms that allow third-party scripts.

Where To Add This Code

  1. 1. Open your website HTML file.
  2. 2. Paste the script near the end of the page, right before </body>.
  3. 3. Publish the page and verify the widget appears in the configured corner.
<script
  src="https://fortunashield.com/embed/sdk.js"
  data-pool-address="0x517537fc8299db178dd0770beb7b4dd47ad0d726"
  data-position="top-left"
  data-mode="default"
  data-size="default"
  data-shadow="1"
  data-margin-x="16"
  data-margin-y="16"
></script>

Important Note: Widget analytics uses the same essential tracking model as the Fortuna app. Partners should still review their own cookie/privacy obligations before embedding.

Generated Iframe Embed

Fallback method. Use this only when third-party scripts are blocked.

<iframe
  src="https://fortunashield.com/embed/widget?poolAddress=0x517537fc8299db178dd0770beb7b4dd47ad0d726&mode=default&size=default"
  title="Fortuna TrustScore Widget"
  loading="lazy"
  referrerpolicy="strict-origin-when-cross-origin"
  allow="clipboard-read; clipboard-write"
  allowtransparency="true"
  scrolling="no"
  style="position:fixed;top:16px;left:16px;width:248px;height:115px;border:0;overflow:hidden;z-index:2147483000;background:transparent;background-color:transparent;border-radius:14px;box-shadow:none;"
></iframe>

Important Note: Widget analytics uses the same essential tracking model as the Fortuna app. Partners should still review their own cookie/privacy obligations before embedding.

Options

OptionValuesDescription
data-pool-address0x...Preferred lookup key for widget data.
data-token-address+data-chain-id0x..., 1, 56, etc.Fallback lookup when pool address is not available.
data-positiontop-left, top-right, bottom-left, bottom-rightFixed corner where widget appears.
data-modedefault (default), dark, lightVisual style of the widget card.
data-sizedefault (default), compactCard layout variant.
data-shadow1 (default), 0Toggle widget shadow and blur backdrop layer.
data-margin-x/data-margin-ypixel value, e.g. 16Distance from viewport edges.