def METHOD_NAME(self, msg: dict) -> bool:
    tx = msg.get('tx')
    try:
        valid = METHOD_NAME(tx=tx, nonces=self.nonces)
    except Exception as err:
        valid = False
        self.log.error(err)
        self.log.debug(msg)
    return valid