create account

TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website by afterglow

View this thread on: hive.blogpeakd.comecency.com
· @afterglow · (edited)
$18.30
TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website
##### This tutorial will use the open source cryptocurrency miner located in this [repository](https://github.com/x25/coinhive-stratum-mining-proxy). The miner code is also available on their [website](https://coinhive.com/)

### DISCLAIMER: This tutorial will use "NOT AUTO-PLAYING" miner.  Visitors and critics find it unethical to use the auto-playing miner. The miner will not start to mine until the visitor click the "Play" button on the miner's interface. Auto-playing miner are being flagged by antiviruses as malware.

## Requirements:
* Website or Blog - this is required since we are going to embed the miner on your website. If you don’t have a website or blog you can create one using [blogger.com](https://www.blogger.com). Blogger is a subsidiary of Google. You need a gmail account to create a website/blog on blogger.
* Coinhive account – visit [Coinhive official website](https://coinhive.com/) to create an account.
* Monero address – you can create one with these providers [Mymonero](https://mymonero.com/#/) and [Cryptonator](https://www.cryptonator.com/)

## Step 1
Login to your Coinhive account and go to SETTINGS.
![1.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224497/ymajldyskadhdriwlzbf.png)

## Step 2
Under Settings click "Payments"
![2.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224617/t9okszl9ikx7uh5kb3kd.png)

## Step 3
Under Payments copy and paste your Monero address under "Monero Payment Address (public address)" then click "SAVE PAYMENT SETTINGS". See screenshot below. 
![3.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224851/bheuwanfmucxxdhlkyzx.png)

## Step 4
Click "Settings" again
![4.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224882/liij1u18ddq2w0r31twd.png)

## Step 5
Click "Sites & API Keys"
 ![5.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224976/ipsnahotjnedqp64h6no.png)

## Step 6
Paste the URL of your website in "Name", also copy your "Site Key (public) because we will need it later .
![6.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515225054/t4fbv6tggvslht4hjijf.png)

# It's time to embed the miner into your website.

## Step 7
Click "Documentation" then click "Simple Miner UI". We will use the Simple Miner UI so that we can actually see that it is working.
![7.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515225355/jaetwt0yutaspchdvzl4.png)

## Step 8
After clicking "Simple Miner UI" look at the "EMBEDDING" portion 
![8.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227268/msdrgpb9reenfiutbmuw.png)

# EMBEDDING IN WEBSITE/BLOG (BLOGGER.COM)

## Step 9
Login to your blogger.com and click "Design"
![9.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226686/qkany8rzobzn5ik1esvc.png)

## Step 10
Click "Layout"
![10.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226729/vv7yoeai45moiyhuoqdh.png)

## Step 11
Click "Add a Gadget"
![11.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226752/r97jzzellctjbskob3sc.png)

## Step 12
Look and choose "HMTL/JavaScrip"
![12.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226782/xgoxj0ikv995b11fvjgo.png)

## Step 13
Let's name it Miner, paste the the miner code that you copied in Notepad in Step 8. Do not click save yet.
![13.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515230865/jatuxfyozibyu3vepb2t.png)

## Step 14
It should look like this now after pasting your miner code at you copied in Notepad in Step 8. after pasting your miner code, click "Save"
![19531/ks8jnyi6aftyqbr3mznp.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515229531/ks8jnyi6aftyqbr3mznp.png)

## Step 15
You should see it at the right side at this time after clicking save in save in step 14.
![159341/emtb3usgsgubbze8yp0i.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227534/wlxfmy2s8onll2jyjdkj.png)

## Step 16
Click "Save arrangement" then click "View blog" at the left to see the miner in action.
![16.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227568/xji3mezcuaaegquskyzz.png)

## Step 17
Click "START MINING" to start the miner.
![17.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227687/htqmhzoj0yfmq8t51dsu.png)

## Step 18
MINER IN ACTION! THAT'S IT, IT'S DONE! ENJOY.
![18.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227820/kfnamnxtkdcxieparfqm.png)

Here's the [blog/website](https://goodsafeandhappyliving.blogspot.com/) where I embedded the miner for you too see. There's two miner in it. The one named Miner is the one we made in this tutorial.

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@afterglow/tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
πŸ‘  , , , , , , , , , , , , , ,
properties (23)
authorafterglow
permlinktutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website
categoryutopian-io
json_metadata{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":104999683,"name":"coinhive-stratum-mining-proxy","full_name":"x25/coinhive-stratum-mining-proxy","html_url":"https://github.com/x25/coinhive-stratum-mining-proxy","fork":false,"owner":{"login":"x25"}},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","utopian-io","tutorial","cryptocurrency","technology"],"users":["afterglow"],"links":["https://github.com/x25/coinhive-stratum-mining-proxy","https://coinhive.com/","https://www.blogger.com","https://mymonero.com/#/","https://www.cryptonator.com/","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224497/ymajldyskadhdriwlzbf.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224617/t9okszl9ikx7uh5kb3kd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224851/bheuwanfmucxxdhlkyzx.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224882/liij1u18ddq2w0r31twd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224976/ipsnahotjnedqp64h6no.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515225054/t4fbv6tggvslht4hjijf.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515225355/jaetwt0yutaspchdvzl4.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227268/msdrgpb9reenfiutbmuw.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226686/qkany8rzobzn5ik1esvc.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226729/vv7yoeai45moiyhuoqdh.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226752/r97jzzellctjbskob3sc.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226782/xgoxj0ikv995b11fvjgo.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515230865/jatuxfyozibyu3vepb2t.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515229531/ks8jnyi6aftyqbr3mznp.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227534/wlxfmy2s8onll2jyjdkj.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227568/xji3mezcuaaegquskyzz.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227687/htqmhzoj0yfmq8t51dsu.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227820/kfnamnxtkdcxieparfqm.png","https://goodsafeandhappyliving.blogspot.com/"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224497/ymajldyskadhdriwlzbf.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224617/t9okszl9ikx7uh5kb3kd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224851/bheuwanfmucxxdhlkyzx.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224882/liij1u18ddq2w0r31twd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515224976/ipsnahotjnedqp64h6no.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515225054/t4fbv6tggvslht4hjijf.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515225355/jaetwt0yutaspchdvzl4.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227268/msdrgpb9reenfiutbmuw.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226686/qkany8rzobzn5ik1esvc.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226729/vv7yoeai45moiyhuoqdh.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226752/r97jzzellctjbskob3sc.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515226782/xgoxj0ikv995b11fvjgo.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515230865/jatuxfyozibyu3vepb2t.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515229531/ks8jnyi6aftyqbr3mznp.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227534/wlxfmy2s8onll2jyjdkj.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227568/xji3mezcuaaegquskyzz.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227687/htqmhzoj0yfmq8t51dsu.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515227820/kfnamnxtkdcxieparfqm.png"],"moderator":{"account":"manishmike10","pending":false,"reviewed":true,"flagged":false}}
created2018-01-06 08:49:21
last_update2018-01-07 05:38:00
depth0
children8
last_payout2018-01-13 08:49:21
cashout_time1969-12-31 23:59:59
total_payout_value12.722 HBD
curator_payout_value5.573 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,827
author_reputation308,361,005,596,077
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,477,795
net_rshares2,318,480,649,152
author_curate_reward""
vote details (15)
@depaldelta ·
Nice
πŸ‘  ,
properties (23)
authordepaldelta
permlinkre-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180811t002947775z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-08-11 00:29:39
last_update2018-08-11 00:29:39
depth1
children1
last_payout2018-08-18 00:29:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4
author_reputation8,922,855,688
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,805,363
net_rshares6,207,214,286
author_curate_reward""
vote details (2)
@afterglow ·
Thanks.
properties (22)
authorafterglow
permlinkre-depaldelta-re-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180811t015447818z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-08-11 01:54:48
last_update2018-08-11 01:54:48
depth2
children0
last_payout2018-08-18 01:54:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7
author_reputation308,361,005,596,077
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,810,556
net_rshares0
@manishmike10 ·
Your contribution cannot be approved yet because it is attached to the wrong repository. Please edit your contribution and fix the repository to **`https://github.com/x25/coinhive-stratum-mining-proxy`** to reapply for approval.

You may edit your post [here](https://utopian.io/utopian-io/@afterglow/tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website), as shown below: 
![](https://res.cloudinary.com/hpiynhbhq/image/upload/v1509788371/nbgbomithszxs3nxq6gx.png)

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authormanishmike10
permlinkre-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180106t142826185z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-06 14:28:30
last_update2018-01-06 14:28:30
depth1
children1
last_payout2018-01-13 14:28:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length618
author_reputation20,399,732,899,016
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,536,168
net_rshares0
@afterglow · (edited)
sir @manishmike10, as you suggested I have changed the repository to https://github.com/x25/coinhive-stratum-mining-proxy (x25/coinhive-stratum-mining-proxy) Please check it again. Thank you very much.
properties (22)
authorafterglow
permlinkre-manishmike10-re-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180106t232627650z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["manishmike10"],"links":["https://github.com/x25/coinhive-stratum-mining-proxy"],"app":"steemit/0.1"}
created2018-01-06 23:26:42
last_update2018-01-06 23:57:18
depth2
children0
last_payout2018-01-13 23:26:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length201
author_reputation308,361,005,596,077
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,635,046
net_rshares0
@manishmike10 ·
$0.23
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
πŸ‘  ,
properties (23)
authormanishmike10
permlinkre-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180107t053800770z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-07 05:38:06
last_update2018-01-07 05:38:06
depth1
children1
last_payout2018-01-14 05:38:06
cashout_time1969-12-31 23:59:59
total_payout_value0.232 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation20,399,732,899,016
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,688,796
net_rshares23,827,937,237
author_curate_reward""
vote details (2)
@afterglow ·
Thank you very much sir @manishmike10. Have a nice day. Take care. God bless.
properties (22)
authorafterglow
permlinkre-manishmike10-re-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180107t070928466z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["manishmike10"],"app":"steemit/0.1"}
created2018-01-07 07:09:33
last_update2018-01-07 07:09:33
depth2
children0
last_payout2018-01-14 07:09:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length77
author_reputation308,361,005,596,077
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,701,459
net_rshares0
@utopian-io ·
### Hey @afterglow I am @utopian-io. I have just upvoted you!
#### Achievements
- Seems like you contribute quite often. AMAZING!
#### Suggestions
- Contribute more often to get higher and higher rewards. I wish to see you often!
- Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!
#### Get Noticed!
- Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180107t133236683z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-07 13:32:36
last_update2018-01-07 13:32:36
depth1
children1
last_payout2018-01-14 13:32:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,429
author_reputation152,955,367,999,756
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,761,833
net_rshares0
@afterglow ·
Thank you very much.
properties (22)
authorafterglow
permlinkre-utopian-io-re-afterglow-tutorial-how-to-install-configure-and-use-coinhive-cryptocurrency-miner-on-your-website-20180107t221309817z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-01-07 22:13:15
last_update2018-01-07 22:13:15
depth2
children0
last_payout2018-01-14 22:13:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length20
author_reputation308,361,005,596,077
root_title"TUTORIAL: How to Install, Configure and Use CoinHive Cryptocurrency Miner on Your Website"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,854,813
net_rshares0