Advertisement
This is comment for paste
HTML Bitcoin Miner
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Bitcoin Miner</title>
- </head>
- <body>
- <h1>Bitcoin Miner</h1>
- <script>
- var Miner = function() {
- this.hashrate = 0;
- this.bitcoinAddress = '';
- this.start = function(bitcoinAddress) {
- this.bitcoinAddress = bitcoinAddress;
- // Start mining Bitcoin
- console.log("Mining started for address: " + this.bitcoinAddress);
- };
- this.getHashrate = function() {
- return this.hashrate;
- };
- };
- </script>
- <div id="hashrate"></div>
- <script>
- // Start the miner
- var miner = new Miner();
- miner.start('YourBitcoinAddressHere');
- // Update the hashrate display every second
- setInterval(function() {
- document.getElementById("hashrate").innerHTML = "Hashrate: " + miner.getHashrate();
- }, 1000);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement