Bitcoin Forum
May 23, 2024, 03:23:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Raw Transactions API... Am I using it correctly?  (Read 4874 times)
Hiblet
Newbie
*
Offline Offline

Activity: 1
Merit: 1


View Profile
May 24, 2016, 03:17:51 PM
Merited by ABCbits (1)
 #21

I'm a DOS person, I had a lot of faffing about but this worked for me...

bitcoin-cli -regtest createrawtransaction [{\"txid\":\"c6343009c5d73572f750359480ae95170a00cfb41063f8cd70e1c14d06e8776c\",\"vout\":0}] {\"myf8U7KUzidun3WzjK2WM4nYVyE1ZkpSGH\":49.9999}

I removed single quotes around each object, and double quotes within the object had to be escaped.  Hope this helps anyone else getting JSON Parse errors on the Windows DOS command line version.  The actual ids and addresses are my own, natch, yours will differ, but the formatting should work.
Pages: « 1 [2]  All
  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!