public ActionResult <FeeResponse> GetFee() { Console.WriteLine("CONTROLLERLOG: GetFee "); return(new FeeResponse { fee = _lightning.getFeePercentage() }); }
public async Task <ActionResult> Index(string id) { Console.WriteLine("CONTROLLERLOG: INDEX " + id); var getInfo = await _lightning.GetInfo(); var channelString = getInfo.IdentityPubkey; if (getInfo.Uris.Count > 0) { channelString = getInfo.Uris[0]; } ViewData["Channel"] = channelString; ViewData["Fee"] = _lightning.getFeePercentage().ToString() + "%"; return(View()); }