pub fn tx_decode( raw_tx_hex: &str, network: Network, ) -> Result<TransactionInfo, TxError>
Decode a raw transaction and return transaction info.