A custom request with a specified method.
the request method identifier
optional request parameters
Converts the request to a JSON-RPC request.