Bitcoin Forum
October 24, 2017, 01:55:26 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Re: Raw Transactions API... Am I using it correctly?  (Read 422 times)
shamoons
Full Member
***
Offline Offline

Activity: 140



View Profile WWW
July 25, 2013, 02:12:32 AM
 #1

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?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508810126
Hero Member
*
Offline Offline

Posts: 1508810126

View Profile Personal Message (Offline)

Ignore
1508810126
Reply with quote  #2

1508810126
Report to moderator
1508810126
Hero Member
*
Offline Offline

Posts: 1508810126

View Profile Personal Message (Offline)

Ignore
1508810126
Reply with quote  #2

1508810126
Report to moderator
gmaxwell
Moderator
Legendary
*
qt
Offline Offline

Activity: 2324



View Profile
July 25, 2013, 02:59:03 AM
 #2

That would just be a TXID for some transaction which had paid them previously— you can get them out of listunspent.

Bitcoin will not be compromised
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!