OK, here's version 4. Output now matches what you see in the UI, and gives you information on debits/credit/generated/etc. The 'count' and 'includegenerated' parameters are now honored.
Patch:
http://pastebin.ca/1910623Raw patch:
http://pastebin.ca/raw/1910623Here's sample output from my dev box:
$ /usr/local/src/bitcoin/bitcoind -datadir=/usr/local/bitcoin/data listtransactions
[
{
"address" : "15uyjNbNzizz5r8UgWpF1ZayV82Pq3FHQ5",
"label" : "",
"class" : "credit",
"amount" : 0.02000000000000000,
"confirmations" : 160
},
{
"address" : "15uyjNbNzizz5r8UgWpF1ZayV82Pq3FHQ5",
"label" : "",
"class" : "credit",
"amount" : 0.01000000000000000,
"confirmations" : 162
},
{
"address" : "1GKgKYtV79jYHR2mr1SSDp9EjXQuLTmUTw",
"label" : "",
"class" : "debit",
"amount" : 0.02000000000000000,
"confirmations" : 1525
},
{
"address" : "191ALqREPdXCGE6mhfS7HqRZCeQB2AHT6y",
"label" : "",
"class" : "credit",
"amount" : 0.02000000000000000,
"confirmations" : 1531
},
{
"address" : "1HVYQQ5K489fMx5Aqt48M5oTJPsmUhrpkx",
"label" : "",
"class" : "debit",
"amount" : 0.01000000000000000,
"confirmations" : 1572
},
{
"address" : "1KTpPjGWyhTBC5NNYFwNzkyjW6UDL9jKPG",
"label" : "Your Address",
"class" : "credit",
"amount" : 0.01000000000000000,
"confirmations" : 1587
}
]