Bitcoin Forum
May 05, 2024, 02:30:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: No tool to convert json to hex?  (Read 553 times)
imjustagirl (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


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!
1714919410
Hero Member
*
Offline Offline

Posts: 1714919410

View Profile Personal Message (Offline)

Ignore
1714919410
Reply with quote  #2

1714919410
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714919410
Hero Member
*
Offline Offline

Posts: 1714919410

View Profile Personal Message (Offline)

Ignore
1714919410
Reply with quote  #2

1714919410
Report to moderator
1714919410
Hero Member
*
Offline Offline

Posts: 1714919410

View Profile Personal Message (Offline)

Ignore
1714919410
Reply with quote  #2

1714919410
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4616



View Profile
August 18, 2017, 07:07:45 PM
Merited by ABCbits (1)
 #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: 1662
Merit: 1050


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

https://chainquery.com/bitcoin-api/createrawtransaction

imjustagirl (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


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: 3388
Merit: 4616



View Profile
August 19, 2017, 01:19:24 PM
Merited by ABCbits (1)
 #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!