def validate(self, request):
try:<EOL><INDENT>validate_version(request)<EOL>validate_method(request)<EOL>validate_params(request)<EOL>validate_id(request)<EOL><DEDENT>except (AssertionError, KeyError) as error:<EOL><INDENT>invalid_request(error)<EOL><DEDENT>
Validate JSON-RPC request.

        :param request: RPC request object
        :type request: dict