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.