# Creating a unique identifier for this event for ES selectorHash = "0x" + str( harvester.web3.toHex( harvester.web3.sha3( text=selectorText)) )[2:10] txEventString = str( selectorHash) + str( harvester.web3.toHex( transaction.hash)) txEventKey = str( harvester.web3.toHex( harvester.web3.sha3( text=txEventString))) if harvester.hasEventBeenIndexed( harvester.eventIndex, txEventKey) != True: # Calculate the hash to that we can see if the transaction's topic has a match eventSignature = harvester.web3.toHex( harvester.web3.sha3( text=selectorText)) # Obtain the transaction's topics so we can compare topics = harvester.web3.toHex( transactionLog['topics'] [0]) # Check to see that the topic in this transaction matches the particular ABI event that we are currently iterating over if topics == eventSignature: print(str(name)) eventDict[ "txEventKey"] = txEventKey eventDict["id"] = str(