Bitcoin Forum
December 17, 2017, 03:05:18 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Help On Calculation Confirmation Time for Transaction on Bitcoind  (Read 935 times)
itsduhdew
Newbie
*
Offline Offline

Activity: 2


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!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513523118
Hero Member
*
Offline Offline

Posts: 1513523118

View Profile Personal Message (Offline)

Ignore
1513523118
Reply with quote  #2

1513523118
Report to moderator
1513523118
Hero Member
*
Offline Offline

Posts: 1513523118

View Profile Personal Message (Offline)

Ignore
1513523118
Reply with quote  #2

1513523118
Report to moderator
1513523118
Hero Member
*
Offline Offline

Posts: 1513523118

View Profile Personal Message (Offline)

Ignore
1513523118
Reply with quote  #2

1513523118
Report to moderator
cr1776
Legendary
*
Offline Offline

Activity: 1736


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: 1736


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

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

Activity: 2


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: 1736


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!