Skip to content

Albermonte/webminer-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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