8
1
Just one question. Where and how is the TIMESTAMP of a transaction generated?
Is it reliable to develop a transactions notification system?
Thank you! (I mean the time node below)
{ "hash":"44ffca26a089ccc806a7861e715d237d9f63b373085492f2ee82901171e8d661", "ver":1, "vin_sz":1, "vout_sz":2, "size":257, "relayed_by":"127.0.0.1", "tx_index":31066681,"result":0, "time":1351624745,"block_height":205754, "inputs":[ { "prev_out":{ "type":0, "addr":"1PAPY4UN1NtFwRibWRuFT1CkgK3NvnMpoC",
"value":879000000, "tx_index":31055718, "n":1 } } ], "out":[ { "addr":"1ELop4RiQtsVnqPJZHqErCvmJZPHsVn2YT", "value":5000000, "type":0 } ,{ "addr":"1PAPY4UN1NtFwRibWRuFT1CkgK3NvnMpoC",
"value":874000000, "type":0 } ] },
1This is a good question. When a block arrives with that transaction the timestamp would probably be different from the timestamp that the local node gave it.
I haven't looked at what the bitcoin.org client does, so I don't know if it changes the timestamp to that from the mined block.
If it does, then the value for time from the API call response can vary between when the transaction is first seen and when it has confirmed. – Stephen Gornick – 2012-11-01T14:24:54.120