expose a typed API for RPCClient