client/src/models/BitcoinTx.js
// unpack compact array format tx data
unpack compact array format tx data
unpack compact array format tx data
static decompress (data, blockData) {
    return {
      version: data[0],
      inflated: false,
      preview: true,
      id: data[1],
      fee: data[2],
      value: data[3],
      vbytes: data[4],
      numInputs: data[5],
      outputs: data[6].map(vout => { return { value: vout[0], script_pub_key: vout[1] }}),
    }
  }
static decompress ( data , blockData ) { return { version : data [ 0 ] , inflated : false , preview : true , id : data [ 1 ] , fee : data [ 2 ] , value : data [ 3 ] , vbytes : data [ 4 ] , numInputs : data [ 5 ] , outputs : data [ 6 ] . map ( vout => { return { value : vout [ 0 ] , script_pub_key : vout [ 1 ] } } ) , } }
unpack compact array format tx data
unpack compact array format tx data