Title: Parsing your transactions using bitcointools Post by: Brre on July 22, 2010, 03:11:23 PM Hi,
I am trying to parse the transactions using bitcointools: I get the following when i parse the wallet: 'TxIn: prev(82df...6428:1), is this the previous transaction? So how do you compute the net transaction value then, do you have to go back the whole chain? Title: Re: Parsing your transactions using bitcointools Post by: Gavin Andresen on July 23, 2010, 02:25:44 AM TxIn: prev(82df...6428:1) means the second TxOut of transaction 82df...something...6428 (it abbreviates the full 256-bit transaction hash and starts counting at zero).
To see that transaction: Code: gavin$ dbdump.py --transaction=82df...6428 Code: gavin$ dbdump.py --transaction=bfb0...cd16 To compute the net transaction value, just add up the values of all the TxOuts; they have to equal the sum of all the TxIns (well, unless there are transaction fees (http://www.bitcoin.org/wiki/doku.php?id=transaction_fee)). So for that first transaction, 66.07+0.05 = 66.12 (which is, indeed, bfb0...cd16:1) |