}//end deposit static async Task receipt() { if (receiptHolder == null) { Console.Out.WriteLine("There has not been a recent deposit. So no receipt can be shown."); } else { await receiptHolder.getReceipt(); Console.Out.WriteLine(receiptHolder.interpretReceipt().interpretation); } }//end deposit
}//end show coins /* Deposit allow you to send a stack file to the CloudBank */ static async Task <CloudBankUtils> depositAsync() { CloudBankUtils sender = new CloudBankUtils(myKeys); Console.Out.WriteLine("What is the path to your stack file?"); //string path = reader.readString(); string path = AppDomain.CurrentDomain.BaseDirectory; path += reader.readString(); Console.Out.WriteLine("Loading " + path); sender.loadStackFromFile(path); await sender.sendStackToCloudBank(publicKey); await sender.getReceipt(publicKey); return(sender); }//end deposit
}//end deposit static async Task receipt2() { var x = new CloudBankUtils(myKeys); await x.getReceipt(myKeys.publickey); }