Author

Topic: No tool to convert json to hex? (Read 584 times)

legendary
Activity: 3472
Merit: 4801
August 19, 2017, 08:19:24 AM
#5
createrawtransaction - if I input the script, it says that there is invalid syntax.

Then you should use the correct syntax for your createrawtransaction JSON.
member
Activity: 118
Merit: 11
August 19, 2017, 05:38:40 AM
#4
Thank you for the links, but that's not exactly what I wanted. Let's say I have the transaction from { to }, already signed and all that. I want the form to completely take my json text and convert it to hex like  paste ->hex. These all make me fill in blanks and create the json text for me. createrawtransaction - if I input the script, it says that there is invalid syntax.
legendary
Activity: 1662
Merit: 1050
legendary
Activity: 3472
Merit: 4801
August 18, 2017, 02:07:45 PM
#2
I wanted to ask, why is there no tool to convert json format of transaction into hex? Why not? Is it that difficult to implement?
For example, I want to edit my transaction by hand, instead of going through it from some program step by step.
There is a decode hex to json on blockchain, why is there no tool to reverse this process? I'm a bit new to bitcoin, so please don't be mad if I'm asking a stupid question, I was just curious.

There is.

It's built into Bitcoin Core.

The command is called "createrawtransaction".

It takes JSON data as input, and it generates a raw hex transaction.
member
Activity: 118
Merit: 11
August 18, 2017, 01:53:17 PM
#1
I wanted to ask, why is there no tool to convert json format of transaction into hex? Why not? Is it that difficult to implement?
For example, I want to edit my transaction by hand, instead of going through it from some program step by step.
There is a decode hex to json on blockchain, why is there no tool to reverse this process? I'm a bit new to bitcoin, so please don't be mad if I'm asking a stupid question, I was just curious.
Jump to: