public override async Task <IWallet> GetDetails()
        {
            try
            {
                var r = await rpcClient.RPCLocalCommandAsync("getwalletinfo", null);

                var jsonread = JsonConvert.DeserializeObject <NeblioQTWalletInfo>(r);

                TotalBalance            = jsonread.result.balance;
                TotalUnconfirmedBalance = jsonread.result.unconfirmed_balance;

                await ListAccounts();

                Console.WriteLine("Result:\n\n" + r);
            }
            catch (Exception ex)
            {
                log.Error("Exeption in input data format");
            }

            return(this);
        }
Example #2
0
        private static async Task RPCLocalCommandAsync(DbConnection conn, string param, object obj)
        {
            var res = await rpcClient.RPCLocalCommandAsync(param, null);

            Console.WriteLine($"result of request: {res}");
        }