@classmethod
def request_payload(cls, id_, method, params=None):
    """JSON v2 request payload.  Params is optional."""
    payload = {'jsonrpc': '2.0', 'method': method, 'id': id_}
    if params:
        payload['params'] = params
    return payload
