async def METHOD_NAME(request: Request):
    b = await request.json()
    method: str = b[0]
    kwargs: dict = b[1]
    f = _rpcs.get(method)
    if f is None:
        return JSONResponse([None, f'unknown method: {method}'])
    try:
        res = await f(**kwargs)
        return JSONResponse([res, None])
    except ValueError as e:
        return JSONResponse([None, str(e)])
    except:
        # noinspection PyBroadException,PyPep8
        return JSONResponse([None, traceback.format_exc()])