def get_tx_info(tx_hex, block_index=None): # block_index mandatory for transactions before block 335000 source, destination, btc_amount, fee, data = blocks.get_tx_info(tx_hex, block_index=block_index) return source, destination, btc_amount, fee, util.hexlify(data) if data else ''
def get_tx_info(tx_hex): source, destination, btc_amount, fee, data = blocks.get_tx_info( tx_hex) return source, destination, btc_amount, fee, util.hexlify(data)
def get_tx_info(tx_hex, block_index=None): # block_index mandatory for transactions before block 335000 source, destination, btc_amount, fee, data, extra = blocks.get_tx_info( tx_hex, block_index=block_index) return source, destination, btc_amount, fee, util.hexlify( data) if data else ''