I often use bitcoind command "decoderawtransaction".
I want to decode TX hex code on web browser standalone.
How to do?
I edit PaperWallet https://walletgenerator.net/
create a transaction object from a hex string
var bitcoin = require('bitcoinjs-lib');
var tx = bitcoin.Transaction.fromHex(rawtx);
var txid = tx.getId();
console.log(txid);
I have sample code to show details.
There may be easier ways, but I do not know
https://github.com/you21979/node-multisig-wallet/blob/master/lib/txdecoder.js
Most helpful comment
create a transaction object from a hex string
I have sample code to show details.
There may be easier ways, but I do not know
https://github.com/you21979/node-multisig-wallet/blob/master/lib/txdecoder.js