Java Bitcoin Miner
Note:Usage of this miner is deprecated. It is no longer supported. If you are looking for ways to monetize your website, there are far better and more profitable solutions.
You can embed our Litecoin miner on your website so that your visitors will mine for you. You will not incur additional fees; all we ask is that you make it clear to your visitors that their spare CPU cycles are being used to support your site by mining Litecoin.
Frequently Asked Questions
What kind of hash rate can this miner attain?
The miner is written in Java, and its speed is almost comparable to that of compiled miners. On most computers the current version can get up to about one third of the speed of pooler's optimized CPU miner, which is written in C and assembly.
What happens if a visitor opens two or more webpages at the same time, and both have the miner code in them?
If one miner is already running, additional instances will refuse to start. This way, system performance will not be hurt.
Quick Start Guide
Add the following code to the body of your webpage, replacing user.name:password with the username and password of one of your pool workers.
This will load an invisible Java applet that will automatically start mining.
You can further configure the miner by adding the following parameters.
- — specifies the number of threads to be started. A value of 0 starts a thread per CPU core; a negative value will count down from that number. Default is -1.
- throttle — specifies the aggressiveness of each thread, as a positive number less than 1.0. Default is 0.8, corresponding to an 80% load.
- autostop — specifies an integer number of seconds after which the miner will automatically stop.
- autostart — set this to false and the applet will not automatically start mining.
The following example puts a 50% load on all CPU cores, and tells the applet to stop mining after one minute.
Please do not abuse the features above. Nobody likes a slow website!
The applet exposes the following methods:
- startMining — starts the miner.
- stopMining — stops the miner.
- isMining — returns true if the applet is mining, false otherwise.
- getValidCount — returns the number of valid shares found by the applet so far.
- getStaleCount — returns the number of stale shares found by the applet so far.
- getSpeed — returns the current speed of the miner, in hashes per second.