Pages:
Author

Topic: is it possible to calculate total confirmed transactions till a block ? - page 2. (Read 1578 times)

legendary
Activity: 3472
Merit: 4794
I need the total count of the confirmed transactions from 1-399000th block.

There were a total of 96 transactions confirmed in block number 399000.

İs that clear ??

1 block 1 transaction

2 block 2 transacktion

3 block 5 transaction

1-3 block total 8 transaction. I need 1-399000

So the total number of transactions confirmed in all blocks from block number 1 up to and including block number 399000?

I think it will be somewhere between 110000000 and 111000000.  Do you need an exact number, or just a close approximation?

Do you only want transactions with spendable outputs?  Do you only want the count of transactions that pay to a standard bitcoin address, or should the total include transactions that pay to a non-standard script?

Its in the hash ( 000000000000000003d2548d4c19a5e91a8762c764f3195a7cb4be189bb1da48 ) I think..

That is the hash of the block header of block number 399000.  It is not possible to decode that hash into anything useful.  The block header that was used as input to the hashing function contained the following:

  • Version: 00000004
  • Previous Block Hash: 0000000000000000010cb91a899239148b28b0d6182286b8c8fd1b8e422183d9
  • Merkle Root: 89b80612102795be5a8e78502d5e49fbe47ae2a192d08fb28daad6a2e14327f7
  • Time: 56C5ADD0
  • Bits: 1807a114
  • Nonce: 3A73B160

and also there is a graph in blockchain.info for total transactions but I need the exact total value at 399000.

I can't imagine what you'd need the "exact" total for, but you are welcome to add them all up if you like.

Start here:
https://blockchain.info/block-height/1
(You'll see that block had 1 transaction)

Then here:
https://blockchain.info/block-height/2
(Again you'll see that block had 1 transaction)

Next here:
https://blockchain.info/block-height/3
(Yet again you'll see that block had 1 transaction)

Just keep adding 1 to the number on the end of the link until you get to 399000.  Add up the number of transactions in all the blocks, and you'll have your total.
copper member
Activity: 1358
Merit: 523
ı don't use the bitcoin wallet. it will take so long to wait for bitcoind . and also ı have no  idea how to compile a programe from that code  Cry
It can be modified to work with other APIs like blockchain.info's.

Also, it isn't code, it is pseudocode which is just logic, not actual code.

Edit: what OS do you use? I can write you a batch or shell script (os dependent) that does this. I can do it in a few hours after I get to my computer.

ı use win 7 . Am not sure u asked this Smiley am not a computer genius. ı just see a few c++ lessons at universty its all.
staff
Activity: 3458
Merit: 6793
Just writing some code
ı don't use the bitcoin wallet. it will take so long to wait for bitcoind . and also ı have no  idea how to compile a programe from that code  Cry
It can be modified to work with other APIs like blockchain.info's.

Also, it isn't code, it is pseudocode which is just logic, not actual code.

Edit: what OS do you use? I can write you a batch or shell script (os dependent) that does this. I can do it in a few hours after I get to my computer.
copper member
Activity: 1358
Merit: 523
ı need the total count of the confırmed transactions from 1-399000 th block.

İs that clear ??

1 block 1 transaction

2 block 2 transacktion

3 block 5 transaction

1-3 block total 8 transaction. ı need 1-399000

its in the hash (    000000000000000003d2548d4c19a5e91a8762c764f3195a7cb4be189bb1da48 ) ı think.. and also there is a graph in blockchain.info for total transactions but ı need the exact total valu at 399000 .

edit : https://blockchain.info/charts/n-transactions-total  this is the chart.
Shorena has already given you the pseudo code for it. You already have the logic, you just need to implement that in whatever programming language you want as a program or script which connects to bitcoind to get the data you want.

ı don't use the bitcoin wallet. it will take so long to wait for bitcoind . and also ı have no  idea how to compile a programe from that code  Cry
staff
Activity: 3458
Merit: 6793
Just writing some code
ı need the total count of the confırmed transactions from 1-399000 th block.

İs that clear ??

1 block 1 transaction

2 block 2 transacktion

3 block 5 transaction

1-3 block total 8 transaction. ı need 1-399000

its in the hash (    000000000000000003d2548d4c19a5e91a8762c764f3195a7cb4be189bb1da48 ) ı think.. and also there is a graph in blockchain.info for total transactions but ı need the exact total valu at 399000 .

edit : https://blockchain.info/charts/n-transactions-total  this is the chart.
Shorena has already given you the pseudo code for it. You already have the logic, you just need to implement that in whatever programming language you want as a program or script which connects to bitcoind to get the data you want.
copper member
Activity: 1358
Merit: 523
CAN SOMEBODY HELP ME PLEASE !!!!!!

Sure.  What do you need help with?

Your post isn't clear.  Are you trying to find out how many transactions there were in a block? Do you know the block height?

If so, just replace the 401451 in the following link with the actual block height you are looking for:
https://blockchain.info/block-height/401451

On the resulting page you'll see "Number Of Transactions".  The number next to that is the number of transactions that were in the block.

ı need the total count of the confırmed transactions from 1-399000 th block.

İs that clear ??

1 block 1 transaction

2 block 2 transacktion

3 block 5 transaction

1-3 block total 8 transaction. ı need 1-399000

its in the hash (    000000000000000003d2548d4c19a5e91a8762c764f3195a7cb4be189bb1da48 ) ı think.. and also there is a graph in blockchain.info for total transactions but ı need the exact total valu at 399000 .

edit : https://blockchain.info/charts/n-transactions-total  this is the chart.
legendary
Activity: 3472
Merit: 4794
CAN SOMEBODY HELP ME PLEASE !!!!!!

Sure.  What do you need help with?

Your post isn't clear.  Are you trying to find out how many transactions there were in a block? Do you know the block height?

If so, just replace the 401451 in the following link with the actual block height you are looking for:
https://blockchain.info/block-height/401451

On the resulting page you'll see "Number Of Transactions".  The number next to that is the number of transactions that were in the block.
copper member
Activity: 1358
Merit: 523
can anybody offer a FREE help ??
Double posting while wearing a signature is not nice   Angry Ask the knowledgeable in PM for help. Ciyam or knightdk for exampe

is it ok now Huh CAN SOMEBODY HELP ME PLEASE !!!!!!
sr. member
Activity: 458
Merit: 250
From nothing to nothing
can anybody offer a FREE help ??
Double posting while wearing a signature is not nice   Angry Ask the knowledgeable in PM for help. Ciyam or knightdk for exampe
copper member
Activity: 1358
Merit: 523
can anybody offer a FREE help ??
copper member
Activity: 1358
Merit: 523
How will i use this ? And what will ı modify ?
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
There is a chart in blockchain.com for total transactions by the time. is it possible to calculate it untill a block number ?

like total comfirmed transactions at 399000 block .this block was generated in feb 18 . ı need exact value. ty

Sure, pseudo code:

Code:
total_count = 0

for i = 0 to 399000 do
  hash = getblockhash i
  block = getblock hash
  tx_count = block["tx"].size
  total_count = total_count + tx_count
end

modify for your favorite language -> https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)
copper member
Activity: 1358
Merit: 523
There is a chart in blockchain.com for total transactions by the time. is it possible to calculate it untill a block number ?

like total comfirmed transactions at 399000 block .this block was generated in feb 18 . ı need exact value. ty
Pages:
Jump to: