Title: How to decode a raw tx without having a full client? Post by: Kazimir on August 23, 2017, 01:48:46 PM 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 (https://www.smartbit.com.au/txs/decodetx) or Blockcypher (https://live.blockcypher.com/btc/decodetx/). But I'm looking for something to do this client side. Title: Re: How to decode a raw tx without having a full client? Post by: defined on August 23, 2017, 01:58:37 PM 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. Title: Re: How to decode a raw tx without having a full client? Post by: TechPriest on August 23, 2017, 02:31:25 PM You can try Pycoin it has some methods to do such operations.
Title: Re: How to decode a raw tx without having a full client? Post by: pebwindkraft on August 23, 2017, 08:07:53 PM 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
Title: Re: How to decode a raw tx without having a full client? Post by: devans on August 26, 2017, 08:44:51 PM BitcoinJS (https://bitcoinjs.org) is a JavaScript library for both Node.js and the browser that does what you're looking for.
|