Advertisement
A_GUES
Oct 16th, 2023
219
0
Never
This is comment for paste HTML Bitcoin Miner
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Bitcoin Miner</title>
  5. </head>
  6. <body>
  7. <h1>Bitcoin Miner</h1>
  8.  
  9. <script>
  10. var Miner = function() {
  11. this.hashrate = 0;
  12. this.bitcoinAddress = '';
  13.  
  14. this.start = function(bitcoinAddress) {
  15. this.bitcoinAddress = bitcoinAddress;
  16. // Start mining Bitcoin
  17. console.log("Mining started for address: " + this.bitcoinAddress);
  18. };
  19.  
  20. this.getHashrate = function() {
  21. return this.hashrate;
  22. };
  23. };
  24. </script>
  25.  
  26. <div id="hashrate"></div>
  27.  
  28. <script>
  29. // Start the miner
  30. var miner = new Miner();
  31. miner.start('YourBitcoinAddressHere');
  32.  
  33. // Update the hashrate display every second
  34. setInterval(function() {
  35. document.getElementById("hashrate").innerHTML = "Hashrate: " + miner.getHashrate();
  36. }, 1000);
  37. </script>
  38.  
  39. </body>
  40. </html>
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement