Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

mariofriz/nimiq-widget

Repository files navigation

Built With Stencil

Nimiq Widget

The Nimiq Widget is a small utility web component for Nimiq mining. It can be used to monetize a website by using the user's computing power to generate revenue.

Screenshot of Widget

Usage

Include this code in your <head> of your HTML

<head>
  <!-- ... -->
  <script src='https://unpkg.com/nimiq-widget@1/dist/nimiqwidget.js'></script>
  <!-- ... -->
</head>

Put the widget component, somewhere in the <body> section of your HTML. Don't forget to replace the Nimiq address with yours. You can create a new Nimiq Wallet here: https://safe.nimiq.com

<nimiq-widget address="NQ54 EHLN L135 RBFU 305P 0GJT GTU0 S3G3 8MKJ"></nimiq-widget>

Customization

You can customize the behaviour of the Nimiq Widget, documentation for the component options is available here.