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

in #utopian-io7 years ago (edited)
This tutorial will use the open source cryptocurrency miner located in this repository. The miner code is also available on their website

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. Blogger is a subsidiary of Google. You need a gmail account to create a website/blog on blogger.
  • Coinhive account – visit Coinhive official website to create an account.
  • Monero address – you can create one with these providers Mymonero and Cryptonator

Step 1

Login to your Coinhive account and go to SETTINGS.
1.png

Step 2

Under Settings click "Payments"
2.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

Step 4

Click "Settings" again
4.png

Step 5

Click "Sites & API Keys"
5.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

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

Step 8

After clicking "Simple Miner UI" look at the "EMBEDDING" portion
8.png

EMBEDDING IN WEBSITE/BLOG (BLOGGER.COM)

Step 9

Login to your blogger.com and click "Design"
9.png

Step 10

Click "Layout"
10.png

Step 11

Click "Add a Gadget"
11.png

Step 12

Look and choose "HMTL/JavaScrip"
12.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

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

Step 15

You should see it at the right side at this time after clicking save in save in step 14.
159341/emtb3usgsgubbze8yp0i.png

Step 16

Click "Save arrangement" then click "View blog" at the left to see the miner in action.
16.png

Step 17

Click "START MINING" to start the miner.
17.png

Step 18

MINER IN ACTION! THAT'S IT, IT'S DONE! ENJOY.
18.png

Here's the blog/website 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.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you very much sir @manishmike10. Have a nice day. Take care. God bless.

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, as shown below:

You can contact us on Discord.
[utopian-moderator]

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.

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. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Thank you very much.