Bitcoin Forum
May 04, 2024, 05:53:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help On Calculation Confirmation Time for Transaction on Bitcoind  (Read 1011 times)
itsduhdew (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 04, 2015, 12:16:21 AM
 #1

Hi guys, I am a student doing a project on predicting the amount of blocks or time needed for a transaction to be confirmed on the blockchain based on the fees paid. I am running bitcoin-cli and am having trouble trying to figure out how to find the actual time when a transaction was received and when it was confirmed. Any help would be greatly appreciated.

When I rpc call using gettransaction "txid", I get a weird format for the time which I can't understand. It would be great if someone can explain to me how to read the "time", or suggest a different way of acquiring the data i need to run my analysis.

Thanks!
1714802016
Hero Member
*
Offline Offline

Posts: 1714802016

View Profile Personal Message (Offline)

Ignore
1714802016
Reply with quote  #2

1714802016
Report to moderator
1714802016
Hero Member
*
Offline Offline

Posts: 1714802016

View Profile Personal Message (Offline)

Ignore
1714802016
Reply with quote  #2

1714802016
Report to moderator
1714802016
Hero Member
*
Offline Offline

Posts: 1714802016

View Profile Personal Message (Offline)

Ignore
1714802016
Reply with quote  #2

1714802016
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
November 04, 2015, 01:30:10 AM
 #2

Did you look at this?
https://bitcoin.org/en/developer-reference#gettransaction


And these:

https://en.bitcoin.it/wiki/Block_timestamp
https://en.m.wikipedia.org/wiki/Unix_time

Those might help, but beware that the times are not exact due to the distributed nature of Bitcoin.  Things can happen like block 101 might have a "time" earlier than block 100.

:-)
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
November 04, 2015, 01:41:14 AM
 #3

p.s.  What language are you using?
itsduhdew (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 05, 2015, 07:20:41 AM
 #4

Wow thanks! That was actually very helpful. For some reason, I must have skipped over the gettransaction in the developers guide...
Also, thanks a bunch for the Unix time! I dont think I would have ever figured that out! Im using python btw Tongue
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1299


View Profile
November 09, 2015, 07:00:38 PM
 #5

Wow thanks! That was actually very helpful. For some reason, I must have skipped over the gettransaction in the developers guide...
Also, thanks a bunch for the Unix time! I dont think I would have ever figured that out! Im using python btw Tongue

Glad it helped.  ;-)

Good luck with the project
Pages: [1]
  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!