def make_payload(method, params):
    """
    Makes the JSON-RPC payload
    :param method: Name of the RPC method to invoke
    :param params: Parameters of the method
    :return: Full payload
    """
    payload = {'method': method}
    if len(params) > 0:
        payload['params'] = params
    return payload
