code: def get_by_addr(self, address):
          
          addr = address
          if isinstance(address, str) and len(address) == 34:
              addr = Helper.AddrStrToScriptHash(address)
  
          if not isinstance(addr, UInt160):
              raise Exception("Incorrect address format")
  
          addrlist_snapshot = self.db.prefixed_db(NotificationPrefix.PREFIX_ADDR).snapshot()
          results = []
  
          for val in addrlist_snapshot.iterator(prefix=bytes(addr.Data), include_key=False):
              if len(val) > 4:
                  try:
                      event = SmartContractEvent.FromByteArray(val)
                      results.append(event)
                  except Exception as e:
                      logger.error("could not parse event: %s %s" % (e, val))
          return results
docs: Lookup a set of notifications by address
          Args:
              address (UInt160 or str): hash of address for notifications
  
          Returns:
              list: a list of notifications