Coin-Hive
Mine cryptocurrency Monero (XMR) using Coin-Hive from node.js
Install
npm install -g coin-hive
Usage
var CoinHive = require('coin-hive');
(async () => {
var miner = await CoinHive('ZM4gjqQ0jh0jbZ3tZDByOXAjyotDbo00');
await miner.start();
miner.on('found', () => console.log('Found!'))
miner.on('accepted', () => console.log('Accepted!'))
miner.on('update', (data) => console.log(`
Hashes per second: ${data.hashesPerSecond}
Total hashes: ${data.totalHashes}
Accepted hashes: ${data.acceptedHashes}
`));
setTimeout(async () => await miner.stop(), 60000);
})();
CLI
coin-hive <site-key>
Requisites