Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Inaccuracy in dev guide for createrawtransaction #559
Comments
|
@royalfork thanks for the report! It looks like your shell is passing a single quote (') into the JSON. I used the You may want to try replacing series of three single quotes (''') with just one single quote ('). On bash, odd number of quotes in a row always act the same, so I used three quotes to delineate a code block---but just one single-quote should act the same. If that doesn't work, then maybe try putting everything on the same line. This is what gets done in normal practice when formatting for publication isn't a concern. For example, here is the command you tried to run on one line:
When we get this all sorted out, I'll update the introduction to the instructions with information to help others avoid this problem. Thanks! |
|
@royalfork I haven't heard back from you in a number of days, so I'm going to close this issue as I can't reproduce your error condition. If you have any more information to add after reading my reply above, please feel free to re-open this issue. Thanks! |
harding
closed this
Sep 23, 2014
harding
added
the
Dev Docs
label
Dec 13, 2014
Hiblet
commented
May 24, 2016
•
|
I had the same issue in the DOS shell (boo! hiss!), eventually it came down to removing single quotes, and escaping double quotes... bitcoin-cli -regtest createrawtransaction [{"txid":"c6343009c5d73572f750359480ae95170a00cfb41063f8cd70e1c14d06e8776c","vout":0}] {"myf8U7KUzidun3WzjK2WM4nYVyE1ZkpSGH":49.9999} |
royalfork commentedSep 18, 2014
Location: https://bitcoin.org/en/developer-examples#simple-raw-transaction
I received a JSON parse error when following the guide's steps for creating a raw transaction.
Here's what happened on my machine:
Here's what the documentation says: