// ReSharper disable once UnusedParameter.Local private async Task <SendResponse> SendPaymentAsync(object sender, string paymentRequest, int timeout) { var stream = LndClient.SendPayment(paymentRequest, timeout); await stream.MoveNext(CancellationToken.None); return(stream.Current); }
public void SendPaymentTest() { LndClient lndClient = new LndClient("test_password"); // Todo: query a testnet lapp for a payment request var response = lndClient.SendPayment("", 30); Assert.IsNotNull(response); }