Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: shamoons on July 25, 2013, 02:12:32 AM



Title: Re: Raw Transactions API... Am I using it correctly?
Post by: shamoons on July 25, 2013, 02:12:32 AM
Hi all,

I've been trying to work with the raw transactions API since it's crucial to something I'm working on and I'm encountering a problem.
Code:
createrawtransaction [{"txid":eb63d5d53cd906b5cf75a014e1bcf1c0198ae58d378d45dbfa15045ac89a38ac,"vout":0}] {1FQvMNzFJRf2nFJbhri2pWEVMqTtdLSCmA:2336129790}

As far as I can tell the above should work, but when I put it into the debug console I get the following error.
Code:
Error: Error parsing JSON:[{txid:eb63d5d53cd906b5cf75a014e1bcf1c0198ae58f378d45dbfa15045ac89a38ac,vout:0}]

I've a hunch I'm calling it wrong, however it looks well formed to me so I'm at a loss.

I'm using v0.7.0rc1-beta

Thanks for any information!

How did you pick / generate that txid?


Title: Re: Raw Transactions API... Am I using it correctly?
Post by: gmaxwell on July 25, 2013, 02:59:03 AM
That would just be a TXID for some transaction which had paid them previously— you can get them out of listunspent.