コード例 #1
0
        // 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);
        }
コード例 #2
0
        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);
        }