code: def request_payload(cls, request, request_id):
          '''JSON v1 request (or notification) payload.'''
          if isinstance(request.args, dict):
              raise ProtocolError.invalid_args(
                  'JSONRPCv1 does not support named arguments')
          return {
              'method': request.method,
              'params': request.args,
              'id': request_id
          f request_payload(cls, request, request_id):
          '''JSON v1 request (or notification) payload.'''
          if isinstance(request.args, dict):
              raise ProtocolError.invalid_args(
                  'JSONRPCv1 does not support named arguments')
          return {
              'method': request.method,
              'params': request.args,
              'id': request_id
          }
docs: JSON v1 request (or notification) payload.