php bitcoin node

This is a small PHP application designed to display status and information from the Bitcoin node daemon.To run the application, you will need: This application has been tested with PHP 5.4, 5.5 and 5.6, as well as HHVM and Nightly PHP builds, via TravisCI.To get started, all you need to do is copy/rename php/config.sample.php to php/config.php and configure your node's RPC credentials.The application will connect to your node via RPC and report statistics.To use Google Analytics, simply create a file called google_analytics.inc inside the php directory and paste your GA code into it.The script can also periodically collect the current number of connections as well as peer protocol versions and store it for display via Google Charts on your status page.To do this, just schedule the /stats.php script as well as the /peercount.php script to be called at whatever interval you like, then config.php to enable the chart display.You can optionally tweak the settings under the "Stats" and "Node Count" sections if you want to keep more or less data.
Below are two example crontab entries to call the scripts every five minutes via curl.It is highly recommended to only allow 127.0.0.1 to call the script, as allowing other IP addresses could lead to your node becoming vulnerable to DDoS attacks.To configure profile icons for your node, just set them up using the node_links variable in config.php.The format is a multi-dimensional array, as below.Icon images for Bitnodes.21.co and Blockchain.info are included in the img directory.The node count script automatically counts Core, Classic, Unlimited and BitcoinJ clients.To add more node types to the chart, simply add an entry into the peercount_extra_nodes array in config.php.The key of the entry is an internal-only identifier, and the value is the lower-case text that should be matched in order to increment the counter.Contributions and testing reports are extremely welcome.Please submit a pull request or issue on GitHub, and make sure that your code conforms to the PEAR PHP coding standards (Travis CI will test your pull request when it's sent).
I accept tips via Bitcoin to 1N73BsKN2bubvRo9dXbUjwe4SBHW4j4j4B - if you would like to buy me a beer, please do!The config.php file also contains lots of options to control how the application behaves, and is separated out into loose sections:All Graphs BU Settings Rented Hashpower Home All Graphs Bitcoin Unlimited Settings Visualization Rented Hashpower Graph of All Bitcoin Nodes Download Bitcoin Donate Bitcoin Unlimited Rented Mining Donation Fund (Why did we switch from slush pool?)bitcoin atm map ukCurrent Funds: Graph and data last updated: 8:25am Jun 24 2017 EST (every 15 minutes) Mining Information NiceHash current mining speed: 6.6 PH/sNiceHash target mining speed (limit): 5.9 PH/sBitcoin network hashrate: 4,882 PH/sCurrent cost per PH: 0.42 BTC per day    (Target: 0.4288 BTC)Estimated time remaining in this contract: 4.64 daysProbabilities:At the hashrate of 5.9 PH/s, approximately 1 out of the next 825 blocks will be an Unlimited block (depending on luck).Stated another way: Out of the next 1000 blocks, 1.213 blocks will be our Unlimited blocks.bitcoin vic
Current Funds Breakdown0.00590364 BTC0.00068397 BTC6.62830385 BTC( 1PTY9f8hbaFBd3EsXfAuixZ2Y5ZxWP4uZa )12.55689382 BTC Donation Information0.105 BTC50 TH/s*0.525 BTC250 TH/s*1.05 BTC500 TH/s*2.1 BTC1000 TH/s (1 PH/s)**Figures provided are approximate for hashrate distribution over a 5 day period.However, the resulting mining rewards will also be re-invested over and over, extending the duration much further than 5 days.__________________________________________143.1821508 BTC907.81244245 BTC Recent Log Entries7:55am Jun 24 2017: USA Miners: Refilled order with 0.196063635 BTC.[NiceHashbitcoin litecoin wikiorder before refill = 6.2101 BTC] [After refill = 6.4062 BTC] 7:45am Jun 24 2017: USA Miners: Refilled order with 0.195433445 BTC.[NiceHashbitcoin kdeorder before refill = 6.2123 BTC] [After refill = 6.4077 BTC] 7:42am Jun 24 2017: Europe Miners: Refilled order with 0.1960659 BTC.[NiceHashbitcoin miner 100 th/s
order before refill = 6.2127 BTC] [After refill = 6.4088 BTC] 7:03am Jun 24 2017: USA Miners: Refilled order with 0.20273765 BTC.[NiceHashorder before refill = 6.2325 BTC] [After refill = 6.4353 BTC] 6:28am Jun 24 2017: Europe Miners: Refilled order with 0.100570465 BTC.[NiceHashorder before refill = 6.2576 BTC] [After refill = 6.3582 BTC] 4:21am Jun 24 2017: USA Miners: Refilled order with 0.202160235 BTC.[NiceHashorder before refill = 6.3443 BTC] [After refill = 6.5464 BTC] 3:28am Jun 24 2017: Europe Miners: Refilled order with 0.20301512 BTC.[NiceHashbitcoin mining quad coreorder before refill = 6.3905 BTC] [After refill = 6.5935 BTC] 3:11am Jun 24 2017: USA Miners: Refilled order with 0.201819065 BTC.[NiceHashdoge coin btc-eorder before refill = 6.3993 BTC] [After refill = 6.6012 BTC] 3:04am Jun 24 2017: Europe Miners: Refilled order with 0.2023004 BTC.[NiceHashbitcoin usb miner price
order before refill = 6.4051 BTC] [After refill = 6.6074 BTC] 1:55am Jun 24 2017: USA Miners: Refilled order with 0.20493061 BTC.[NiceHashorder before refill = 6.4653 BTC] [After refill = 6.6702 BTC] See moreSee less How it Works 1.)Note: The figures above will only update every 15 minutes as part of our DDoS protection.Also, NiceHash periodically sweeps the funds from this wallet, while keeping the balance reported on the website the same.Your bitcoin will be put to use mining Bitcoin Unlimited blocks.ethereum project listDonated funds will go toward mining power on a manually set basis.All mining profits will be re-invested back into the donation pool to make your donation go as long as possible in the form of mining power.Note: Because NiceHash does not allow mining rewards to be sent directly back to their address, mining rewards will get sent here: 1PTY9f8hbaFBd3EsXfAuixZ2Y5ZxWP4uZa and then periodically will be sent back to the NiceHash address above for re-use.
Bitcoin Unlimited Blocks get mined and you contribute to the success of activating bigger blocks.Note: All donations to this fund are used for mining power.Donations are final and cannot be reversed.When Bitcoin Unlimited has been activated, whatever funds may remain will be accepted as a donation for the work in putting together and maintaining this service.If Unlimited does not ever activate, mining power may eventually get pointed toward a future Bitcoin implementation which supports bigger blocks, at our discretion.If this occurs, this page will indicate that the change has been made.What will I get for my money? offers bidding-style rented hashpower, so the price depends on supply and demand. Your rented hashpower will mine bitcoin and this bitcoin will get re-invested to mine further bitcoin.In this way, there is an extended effect to anything donated.The minimum allowed to purchase on a NiceHash contract is 5 TH/s.Actual Example: 30 BTC was donated around June 2016.This 30 BTC was able to mine over 600 BTC in mining rewards, by repeatedly reinvesting them.
Demonstration: 1 BTC donated would go something like this: It would initially buy about 75 TH/s over a 5 day period.(For this example, we suppose the cost of hashpower is 0.0031 BTC per TH/s per day.)The resulting mined block rewards (say, 0.8 BTC) would then be re-allocated and we'd mine 60~ TH/s for another 5 days.The resulting mined block rewards (say, 0.65 BTC) would then be re-allocated and we'd mine 45~ TH/s for another 5 days.The resulting mined block rewards (say, 0.5 BTC) would then be re-allocated and we'd mine 38~ TH/s for another 5 days.The resulting mined block rewards (say, 0.4 BTC) would then be re-allocated and we'd mine 30~ TH/s for another 5 days.The resulting mined block rewards (say, 0.32 BTC) would then be re-allocated and we'd mine 25~ TH/s for another 5 days.Etc... (Keep in mind these numbers will fluctuate along with the cost of hashpower and the dollar value of BTC) So, the donation fund will get much of the its money back in the form of block rewards.