Can Bitcore decode a raw tx?

2

I have a serialised transaction in raw hex format that I want decoded in JavaScript. Can Bitcore do that for me?

Randomblue

Posted 2015-12-15T12:54:31.607

Reputation: 753

Answers

2

Bitcore makes it very easy to do this. Just use the Transaction constructor.

var bitcore = require('bitcore')

var txHexSerialized = "010000000...00000000";
var txDecoded = new bitcore.Transaction(txHexSerialized);

morsecoder

Posted 2015-12-15T12:54:31.607

Reputation: 12 624