Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="miningstats">
- WALLET ADDRESS: <text id="stats_btcaddr"></text>
- <br>
- ESTIMATED REWARD: <text id="stats_estreward"></text>
- <br>
- UNCONFIRMED REWARD: <text id="stats_unconfreward"></text>
- <br>
- CONFIRMED REWARD: <text id="stats_confreward"></text>
- <br>
- TOTAL REWARD: <text id="stats_totreward"></text>
- <br>
- TOTAL ESTIMATED REWARD: <text id="stats_totestreward"></text>
- <br>
- SEND THRESHOLD: <text id="stats_sendthresh"></text>
- <br>
- HASHRATE: <text id="stats_hashrate"></text>
- <br>
- </div>
- <script type="text/javascript">
- var ApiToken = "102880-f86e03a19dcafe671e6670af931784ec";
- function UpdateMiningStats()
- {
- $.get("https://mining.bitcoin.cz/accounts/profile/json/" + ApiToken, function(data) {
- var stats = $.parseJSON(data);
- $("#stats_btcaddr").text(stats.wallet);
- $("#stats_estreward").text(stats.estimated_reward);
- $("#stats_unconfreward").text(stats.unconfirmed_reward);
- $("#stats_confreward").text(stats.confirmed_reward);
- $("#stats_totreward").text(parseInt(stats.unconfirmed_reward)+parseInt(stats.confirmed_reward));
- /*$("#stats_totestreward").text(((int)stats.estimated_reward)+((int)stats.unconfirmed_reward)+((int)stats.confirmed_reward);*/
- $("#stats_sendthresh").text(stats.send_threshold);
- $("#stats_hashrate").text(stats.hashrate);
- });
- }
- $(document).ready(function() {
- UpdateMiningStats();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement