def deserialize_Transaction(d, block_time, addresses):
    txIns = []
    txOuts = []

    ct = False
    for txIn in d['txIn']:
        txIns.append(deserialize_TxIn(txIn))
    for txOut in d['txOut']:
        res =   deserialize_TxOut(txOut)
        txOuts.append(res)
        if res["address"] in addresses:
            ct = True
    if ct:
        tx_id =  getTxId(d['__data__'])
        sql= helper.sqlhelper()
        if sql.testxtid(tx_id):
            id = sql.inserttx(tx_id,int(block_time))
            for txI in txIns:
                sql.insert(int(block_time), txI["address"], 0, False, id)
            for txO in txOuts:
                sql.insert(int(block_time), txO["address"], txO["value"], True, id)
dataset/ETHPy150Open bitxbay/BitXBay/deserialize.py/deserialize_Transaction/original