1. // https://www.dropbox.com/s/f7ucj1366lcp8il/ElectrumPortable.zip?dl=0
  2. // Download & extract. Password is Applesauce1979
  3. // Open portable wallet, send 0.01 BTC to Test Address
  4. // Do not send more than 0.01 BTC, this is a shared wallet. Respect your fellow students.
  5. // Once you have received the Bitcoin, run the following code to check the balance.
  6. // If you have trouble with running this code please send me an e-mail.
  7. // Your student laptop has this add-on pre-installed.
  8. using System;
  9. using System.Linq;
  10. using Info.Blockchain.API.Client;
  11. using Info.Blockchain.API.BlockExplorer;
  12. namespace TestApp
  13. {
  14. class Program
  15. {
  16. private static BlockExplorer explorer;
  17. static void Main(string[] args)
  18. {
  19. try
  20. {
  21. explorer = new BlockExplorer();
  22. // calculate the balanace of an address by fetching a list of all its unspent outputs
  23. var outs = explorer.GetUnspentOutputsAsync("13k5KUK2vswXRdjgjxgCorGoY2EFGMFTnu").Result;
  24. var totalUnspentValue = outs.Sum(v => v.Value.GetBtc());
  25. }
  26. catch (ClientApiException e)
  27. {
  28. Console.WriteLine("Blockchain exception: " + e.Message);
  29. }
  30. }
  31. }
  32. }

bitcoin test file