How to decode raw transaction which has 00 in '#TxIn' slot?
This is a SegWit transaction, serialized using the new format defined in BIP144.

The format is only permitted when at least one of the transaction inputs has a witness, and works as follows:


4-byte integer nVersion
1-byte dummy (must be 0)
1-byte flags (must be nonzero)
vector(transaction inputs)
vector(transaction outputs)
if (flags &amp; 1): vector(input witnesses) (excluding the length, which is implied by the number of transaction inputs)
4-byte integer nLockTime


The dummy byte is required to be 0, guaranteeing that the transaction cannot be misinterpreted by old software (as by consensus rules, a transaction with 0 inputs is invalid).