transactionLogs = transactionReceipt.logs if (len(transactionLogs) >= 1): for transactionLog in transactionLogs: contractAddress = transactionLog["address"] blockNumber = transactionReceipt["blockNumber"] sentFrom = transactionReceipt["from"] if harvester.hasDataBeenIndexed( harvester.commonIndex, contractAddress) == True: listOfAbis = harvester.fetchAbiShaList( contractAddress) if listOfAbis["hits"]["total"] > 0: for item in listOfAbis["hits"]["hits"][0][ "_source"]["abiShaList"]: jsonAbi = json.loads( harvester.fetchAbiUsingHash(str(item))) for abiComponents in jsonAbi: isEvent = False name = "" inputs = [] for key, value in abiComponents.items( ): if key == "inputs": inputs = value if key == "name": name = value if key == "type": if value == "event": isEvent = True if isEvent is True and name is not "": eventDict = {}