Post
Topic
Board Beginners & Help
Re: satoshi-client: why are the balances in "listaccounts" bogus?
by
AvL42
on 01/10/2012, 23:29:02 UTC
That wiki page needs updating, the new 'raw transactions' api lets you create transactions from specific previous transactions.
See:  https://en.bitcoin.it/wiki/Raw_Transactions

It seems I'm too dumb to use this API.

Usage is:
  createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}

Assuming "9a8b7c6d5e4f" and 1 were the "txid" and "vout" of a previous
output and "1abc" some target address, I tried (within the debug-console):

Code:
createrawtransaction [{"txid":"9a8b7c6d5e4f","vout":1}] {"1abc":42}
Error: Error parsing JSON:[{txid:9a8b7c6d5e4f,vout:1}]

and

Code:
createrawtransaction '{["txid":"9a8b7c6d5e4f","vout":1}]' '{"1abc":42}'
Error: Error parsing JSON:{["txid":"9a8b7c6d5e4f","vout":1}]

What am I missing?