Bitcoin Forum
May 05, 2024, 05:17:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Re: Raw Transactions API... Am I using it correctly?  (Read 504 times)
shamoons (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 100



View Profile
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?
1714929471
Hero Member
*
Offline Offline

Posts: 1714929471

View Profile Personal Message (Offline)

Ignore
1714929471
Reply with quote  #2

1714929471
Report to moderator
1714929471
Hero Member
*
Offline Offline

Posts: 1714929471

View Profile Personal Message (Offline)

Ignore
1714929471
Reply with quote  #2

1714929471
Report to moderator
1714929471
Hero Member
*
Offline Offline

Posts: 1714929471

View Profile Personal Message (Offline)

Ignore
1714929471
Reply with quote  #2

1714929471
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714929471
Hero Member
*
Offline Offline

Posts: 1714929471

View Profile Personal Message (Offline)

Ignore
1714929471
Reply with quote  #2

1714929471
Report to moderator
1714929471
Hero Member
*
Offline Offline

Posts: 1714929471

View Profile Personal Message (Offline)

Ignore
1714929471
Reply with quote  #2

1714929471
Report to moderator
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!