Albermonte / webminer-addon

An easy, simple and beautiful Nimiq Web Miner

Home Page:https://webminer-addon.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nimiq Web Miner Addon

Webminer-addon is a Nimiq Web Miner with a pretty UI and easy to install and use.

Demo: https://webminer-addon.netlify.app/

Installation

Import the addon: (Important to use defer don't remove it)

<script src="https://cdn.jsdelivr.net/gh/Albermonte/webminer-addon@latest/dist/js/addon.js" defer></script>

Add the following div at the end of your html:

<div id="webminer-addon"></div>

Usage

Add and edit this variables:

<script defer>
    let NIMIQ_ADDRESS = 'NQ65 GS91 H8CS QFAN 1EVS UK3G X7PL L9N1 X4KC';
    let NIMIQ_POOL_HOST = 'eu.nimpool.io';
    let NIMIQ_POOL_PORT = 8444;
    let ADDON_INFO = '<a href="http://shortnim.me/" target="_blank" class="nq-link">This</a> is a custom info text where you can also use <a> tags and styling'
    let ADDON_BOTTOM = true //(Optional, only if you want the addon to be sticked to the bottom)
    let MINER_THREADS = 8   //(Optional, only if you want the addon to mine using a fixed amount of threads. Max amount is the max available threads - 1 (Automatically detected))
</script>

Example

<!DOCTYPE html>
<html>

<head>
  <script src="https://cdn.jsdelivr.net/gh/Albermonte/webminer-addon@latest/dist/js/addon.js" defer></script>
  <script defer>
    let NIMIQ_ADDRESS = 'NQ87 UY1R XQHF E3A2 YP14 TPE6 XAGV 7373 HCJ6';
    let NIMIQ_POOL_HOST = 'pool.nimiq.watch';
    let NIMIQ_POOL_PORT = 8443;
    let ADDON_INFO = '<a href="http://shortnim.me/" target="_blank" class="nq-link">This</a> is a custom info text where you can also use <a> tags and styling'
  </script>
</head>

<body>
  <noscript>
    <strong>We're sorry but webminer-addon doesn't work properly without JavaScript enabled. Please enable it to
      continue.</strong>
  </noscript>

  <div id="webminer-addon"></div>
</body>

</html>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

AGPLv3

About

An easy, simple and beautiful Nimiq Web Miner

https://webminer-addon.netlify.app/

License:GNU Affero General Public License v3.0


Languages

Language:Vue 91.2%Language:HTML 4.5%Language:JavaScript 4.3%