Bitcoin Forum
September 19, 2018, 07:40:23 PM *
News: ♦♦ Bitcoin Core users must update to 0.16.3 [Torrent]. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to decode a raw tx without having a full client?  (Read 404 times)
Kazimir
Legendary
*
Offline Offline

Activity: 1176
Merit: 1000



View Profile
August 23, 2017, 01:48:46 PM
 #1

Suppose I have a raw tx, let's say in in hex format. Is there a library or piece of code (preferably in javascript, php or python) that allows me to decode the raw tx data into a json representation or "readable" format? I.e. something that shows the transaction's inputs and outputs?

I know there are online tools to do this, such as Smartbit or Blockcypher. But I'm looking for something to do this client side.

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
1537386023
Hero Member
*
Offline Offline

Posts: 1537386023

View Profile Personal Message (Offline)

Ignore
1537386023
Reply with quote  #2

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

Posts: 1537386023

View Profile Personal Message (Offline)

Ignore
1537386023
Reply with quote  #2

1537386023
Report to moderator
defined
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500


View Profile
August 23, 2017, 01:58:37 PM
 #2

I think https://coinb.in/#verify can do this offline, it uses javascript to run in your browser only.

I just tested it and it works offline.
TechPriest
Sr. Member
****
Offline Offline

Activity: 353
Merit: 255



View Profile
August 23, 2017, 02:31:25 PM
 #3

You can try Pycoin it has some methods to do such operations.

In science we trust!
pebwindkraft
Full Member
***
Offline Offline

Activity: 246
Merit: 200


View Profile
August 23, 2017, 08:07:53 PM
 #4

if you are on unixoide systems, then this is were I started. It is at the shell level: https://github.com/pebwindkraft/trx_cl_suite
devans
Full Member
***
Offline Offline

Activity: 291
Merit: 155

bustabit & bustadice


View Profile WWW
August 26, 2017, 08:44:51 PM
 #5

BitcoinJS is a JavaScript library for both Node.js and the browser that does what you're looking for.

bustabit – The original crash game
bustadice – Fast-paced bustabit-like dice with no bet limit and Ƀ 20+ max profit
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!