Bitcoin Forum
November 10, 2024, 07:49:40 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: is it possible to calculate total confirmed transactions till a block ?  (Read 1587 times)
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 05, 2016, 08:10:16 PM
 #1

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
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
March 05, 2016, 09:32:23 PM
 #2

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)

Im not really here, its just your imagination.
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 05, 2016, 10:38:29 PM
 #3

How will i use this ? And what will ı modify ?
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 06:59:13 PM
 #4

can anybody offer a FREE help ??
brituspol
Sr. Member
****
Offline Offline

Activity: 458
Merit: 250

From nothing to nothing


View Profile
March 06, 2016, 07:02:05 PM
 #5

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
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 07:20:16 PM
 #6

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 !!!!!!
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
March 06, 2016, 07:24:26 PM
 #7

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.
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 07:32:54 PM
 #8

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.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
March 06, 2016, 07:37:51 PM
 #9

ı 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.

sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 07:41:57 PM
 #10

ı 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
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
March 06, 2016, 07:44:51 PM
 #11

ı 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.

sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 07:57:16 PM
 #12

ı 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.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
March 06, 2016, 08:04:55 PM
 #13

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.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
March 06, 2016, 08:06:33 PM
 #14

ı 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.
I did ask for that. I can write you a command line script which does this.

sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 08:17:22 PM
 #15

ı 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.
I did ask for that. I can write you a command line script which does this.

"399718 uzunluklu blok itibariyle Bitcoin ağında toplam 111998228 işlem onaylanmış durumda."
if u can find 399000- 399718 ı can get what ı need. its easy ı think. just 718 blocks total transactios ?
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 08:34:48 PM
 #16

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 ?

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.

we have a exact total value 1-399718 and its 111998228 . I dont know how it has found. and the question is this "the total number of transactions confirmed in all blocks from block number 1 up to and including block number 399000" its true Smiley
cakir
Legendary
*
Offline Offline

Activity: 1274
Merit: 1000


★ BitClave ICO: 15/09/17 ★


View Profile WWW
March 06, 2016, 09:03:23 PM
 #17

Guys it's logged somewhere (I can't tell it where yet, because it's part of a bitcoin prized game in Turkish) you don't need to calculate it Smiley


                  ,'#██+:                 
              ,█████████████'             
            +██████████████████           
          ;██████████████████████         
         ███████:         .███████`       
        ██████               ;█████'      
      `█████                   #████#     
      ████+                     `████+    
     ████:                        ████,   
    ████:    .#              █     ████   
   ;███+     ██             ███     ████  
   ████     ███'            ███.    '███, 
  +███     #████           ,████     ████ 
  ████     █████ .+██████: █████+    `███.
 ,███     ███████████████████████     ████
 ████     ███████████████████████'    :███
 ███:    +████████████████████████     ███`
 ███     █████████████████████████`    ███+
,███     ██████████████████████████    #███
'███    '██████████████████████████    ;███
#███    ███████████████████████████    ,███
████    ███████████████████████████.   .███
████    ███████████████████████████'   .███
+███    ███████████████████████████+   :███
:███    ███████████████████████████'   +███
 ███    ███████████████████████████.   ███#
 ███.   #██████████████████████████    ███,
 ████    █████████████████████████+   `███
 '███    '████████████████████████    ████
  ███;    ███████████████████████     ███;
  ████     #████████████████████     ████ 
   ███#     .██████████████████     `███+ 
   ████`      ;██████████████       ████  
    ████         '███████#.        ████.  
    .████                         █████   
     '████                       █████    
      #████'                    █████     
       +█████`                ██████      
        ,██████:           `███████       
          ████████#;,..:+████████.        
           ,███████████████████+          
             .███████████████;            
                `+███████#,               
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4832



View Profile
March 06, 2016, 09:11:40 PM
Last edit: March 06, 2016, 09:38:40 PM by DannyHamilton
 #18

it's part of a bitcoin prized game in Turkish

LOL

So the OP is trying to get someone else give him the answer to a contest that will win bitcoins for himself, but is unwilling to share the prize with the person that gives him the answer?
sonerbo (OP)
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 523


View Profile
March 06, 2016, 09:18:07 PM
 #19

it's part of a bitcoin prized game in Turkish

LOL

So the OP is trying to get someone else give him the answer to a contest that will will bitcoins for himself, but is unwilling to share the prize with the person that gives him the answer?


yeah u are rıght sherlock holmes  Cool am the ugly and dishonest guy. u got me are you happy ??
cakir
Legendary
*
Offline Offline

Activity: 1274
Merit: 1000


★ BitClave ICO: 15/09/17 ★


View Profile WWW
March 06, 2016, 10:08:45 PM
 #20

it's part of a bitcoin prized game in Turkish

LOL

So the OP is trying to get someone else give him the answer to a contest that will win bitcoins for himself, but is unwilling to share the prize with the person that gives him the answer?

Well, not entirely.
This is just a step of it, this answer will be used on next step.
There're more steps to get the prize Smiley


                  ,'#██+:                 
              ,█████████████'             
            +██████████████████           
          ;██████████████████████         
         ███████:         .███████`       
        ██████               ;█████'      
      `█████                   #████#     
      ████+                     `████+    
     ████:                        ████,   
    ████:    .#              █     ████   
   ;███+     ██             ███     ████  
   ████     ███'            ███.    '███, 
  +███     #████           ,████     ████ 
  ████     █████ .+██████: █████+    `███.
 ,███     ███████████████████████     ████
 ████     ███████████████████████'    :███
 ███:    +████████████████████████     ███`
 ███     █████████████████████████`    ███+
,███     ██████████████████████████    #███
'███    '██████████████████████████    ;███
#███    ███████████████████████████    ,███
████    ███████████████████████████.   .███
████    ███████████████████████████'   .███
+███    ███████████████████████████+   :███
:███    ███████████████████████████'   +███
 ███    ███████████████████████████.   ███#
 ███.   #██████████████████████████    ███,
 ████    █████████████████████████+   `███
 '███    '████████████████████████    ████
  ███;    ███████████████████████     ███;
  ████     #████████████████████     ████ 
   ███#     .██████████████████     `███+ 
   ████`      ;██████████████       ████  
    ████         '███████#.        ████.  
    .████                         █████   
     '████                       █████    
      #████'                    █████     
       +█████`                ██████      
        ,██████:           `███████       
          ████████#;,..:+████████.        
           ,███████████████████+          
             .███████████████;            
                `+███████#,               
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!