Bitcoin Forum
October 20, 2020, 05:56:40 PM *
News: Latest Bitcoin Core release: 0.20.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: No tool to convert json to hex?  (Read 477 times)
imjustagirl
Jr. Member
*
Offline Offline

Activity: 117
Merit: 6


View Profile
August 18, 2017, 06: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.

1JPnqMd1Q43L3KbZ7SoTSdRCD2aLj2sikF Tip Me!
1603216600
Hero Member
*
Offline Offline

Posts: 1603216600

View Profile Personal Message (Offline)

Ignore
1603216600
Reply with quote  #2

1603216600
Report to moderator
1603216600
Hero Member
*
Offline Offline

Posts: 1603216600

View Profile Personal Message (Offline)

Ignore
1603216600
Reply with quote  #2

1603216600
Report to moderator
1603216600
Hero Member
*
Offline Offline

Posts: 1603216600

View Profile Personal Message (Offline)

Ignore
1603216600
Reply with quote  #2

1603216600
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
DannyHamilton
Legendary
*
Offline Offline

Activity: 2338
Merit: 1739



View Profile
August 18, 2017, 07: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.

RocketSingh
Legendary
*
Offline Offline

Activity: 1625
Merit: 1036


View Profile
August 19, 2017, 01:00:03 AM
 #3

https://chainquery.com/bitcoin-api/createrawtransaction
imjustagirl
Jr. Member
*
Offline Offline

Activity: 117
Merit: 6


View Profile
August 19, 2017, 10: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.

1JPnqMd1Q43L3KbZ7SoTSdRCD2aLj2sikF Tip Me!
DannyHamilton
Legendary
*
Offline Offline

Activity: 2338
Merit: 1739



View Profile
August 19, 2017, 01:19:24 PM
 #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.

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!