BitcoinWhosWho
Posts: 7
Joined: Tue Sep 22, 2015 8:04 pm

Donate BTC of your choice to 1MX96CwmUJABMwAiU4PjSxjm1Avr2cDHPd

Contact: Website Facebook Twitter

Total number of outputs

Wed Feb 03, 2016 5:24 am

Is there an easy way to determine the total number of outputs (transaction outputs) on the blockchain currently? or as of a certain date , say Jan 29?
Detailed bitcoin address profiles. Search the blockchain by keyword. Monitor transactions with email alerts. Report bitcoin scams here! http://bitcoinwhoswho.com/scams

User avatar
nandibear
Global Moderator
Global Moderator
Posts: 2612
Joined: Sat Jan 30, 2016 7:04 am

Donate BTC of your choice to 1DYss8ztWEgcM93SJtnpfYVt6fp7cwmjBk

Contact: Website Twitter Telegram

Re: Total number of outputs

Wed Feb 03, 2016 6:31 am

@BitcoinWhosWho

There are several methods which you could probably use to determine the current total (all time) number of bitcoin transactions.

The easiest technique might be (Disclaimer: I might be stepping outside of my wheelhouse here) to look at the charts at Blockchain.info.

For example:

Total Output Volume (All Time) → here

Estimated Transaction Volume (All Time) → here

Moreover, both of the charts cited directly above can be searched by date (from the outset in 2009 thru current search date).

There may be other charts at Blockchain.info which may be closer to what you are searching for. Please review them all.

I hope that helps.

EDIT (11:49 PM - Feb 2, 2015): Upon closer review it appears that the Total Number of Transactions chart at Blochchain.info may be more helpful. You can also view numbers by date by moving your cursor along the chart line.

EDIT (11:58 PM - Feb 2, 2015): Screenshot of total transaction as of date Jan 29 2016:

Image
Last edited by nandibear on Wed Feb 03, 2016 6:58 am, edited 2 times in total.
Image

User avatar
coinableS
Nickel Bitcoiner
Nickel Bitcoiner
Posts: 65
Joined: Wed Sep 30, 2015 6:06 am

Donate BTC of your choice to 1J9ikqFuwrzPbczsDkquA9uVYeq6dEehsj

Contact: Website Twitter

Re: Total number of outputs

Wed Feb 03, 2016 6:41 am

I think what you are looking for is gettxsetinfo

This query takes a while considering the amount of data it needs to parse through your node. I just tried to run it and it still hasn't populated after 200 seconds, but this is an example of what it should look like.

Code: Select all

{ "height" : 225494, "bestblock" : "00000000eb0443fd7dc4a1ed5c686a8e995057805f9a161d9a5a77a95e72b7b6", "transactions" : 335344, "txouts" : 2221582, "bytes_serialized" : 72130407, "hash_serialized" : "3d14832b1b468f52ce942d4b9dc0c76a54fa6865207ff64540105403e3109f43", "total_amount" : 10886823.50380013 }
[txouts] will be total available outputs and [total_amount] is total amount of BTC unspent outputs in circulation.

Reference

User avatar
nandibear
Global Moderator
Global Moderator
Posts: 2612
Joined: Sat Jan 30, 2016 7:04 am

Donate BTC of your choice to 1DYss8ztWEgcM93SJtnpfYVt6fp7cwmjBk

Contact: Website Twitter Telegram

Re: Total number of outputs

Wed Feb 03, 2016 8:48 am

@coinableS
I think what you are looking for is gettxsetinfo

This query takes a while considering the amount of data it needs to parse through your node. I just tried to run it and it still hasn't populated after 200 seconds, but this is an example of what it should look like.

....
After reading your comment I think (I hope) I might now understand the question (submitted by BitcoinWhosWho) somewhat better.

BitcoinWhosWho was looking for a query.

I feel a little embarrassed now.

Btw, I read your comments over at the Do some code in PHP thread.

I too use PDO prepared statements and I've now posted a question in the form of a comment over there. When you have time please take a look. Thanks.
Image

User avatar
nandibear
Global Moderator
Global Moderator
Posts: 2612
Joined: Sat Jan 30, 2016 7:04 am

Donate BTC of your choice to 1DYss8ztWEgcM93SJtnpfYVt6fp7cwmjBk

Contact: Website Twitter Telegram

Re: Total number of outputs

Fri Feb 05, 2016 7:06 am

2nd comment DELETED
@BitcoinWhosWho


I saw that you posted a 2nd comment here on this thread earlier today but its not longer showing up.

I understand (from your 2nd comment) that you were looking to compare the top 100 bitcoin address which have the highest number of output transactions (as opposed to input) with the total number of all time bitcoin output transactions.

Towards the end of you comment you asked if perhaps that number really and truly would be the total number of all time transactions (as opposed to a certain number of those transactions being outputs and a certain number being inputs).

I had too had to think about that for a few minutes.

While a single 'bitcoin address' may (and most likely will) have different numbers of outputs and inputs (e.g., sent 200 transactions, received 80 transactions) it seems to me that a single 'transaction' on the blockchain would include BOTH an output and an input (i.e., when you send bitcoins someone must receive those bitcoins; = 1 transaction).

My observation (because I generally don't issue conclusions) is that on the blockchain the total all time outputs = total all time transactions and likewise total all time inputs = total all time transactions

If my understanding is incorrect please (anyone reading this) let me know.

Postscript: If the foregoing is correct then you could use the query provided in this thread by coinableS or you can use the php provided below. I just wrote this now so there may be some other more effective way of doing this:

Code: Select all

<?php $info2= "https://blockchain.info/charts/n-transactions-total?format=json"; $data2 = json_decode(file_get_contents($info2), true); echo serialize($data2['values'][365]['y']); ?>
EDIT (4:17 PM - Feb 5, 2015):

After looking at it for few more minutes this would be more much more efficient:

Code: Select all

<?php $info2= "https://blockchain.info/charts/n-transactions-total?format=json"; $date2 = '{"values":"values","365":"365","y":"y"}'; $data2 = json_decode(file_get_contents($info2), true); echo $data2['values'][365]['y']; ?>
Image

Return to “Beginners & Help”

Who is online

Users browsing this forum: No registered users and 2 guests