public void Lesson1() { var blockr = new BlockrTransactionRepository(); Transaction transaction = blockr.Get("d6a57b2ca44327acae03eb408eedab50ea6d4fb304f03aeb5d5251ec37b4baf5"); // Console.WriteLine(transaction.ToString()); Console.WriteLine(transaction.Outputs[0].ScriptPubKey.GetDestinationAddress(Network.Main)); }
static void Main(string[] args) { BitcoinSecret paymentSecret = new BitcoinSecret("L51eDMcsRUFSReQpz587UgcBSXGgskc6ssUGibXXHcYK6aMsAVzr"); BitcoinAddress address = paymentSecret.GetAddress(); Console.WriteLine("Address: {0}", address); var blockr = new BlockrTransactionRepository(); Transaction fundingTransaction = blockr.Get("2ab7d787b02ebd40f5de87aa27569b118ff1cc801088fbf7bab3eec304011878"); Pay(paymentSecret, new BitcoinAddress("1KF8kUVHK42XzgcmJF4Lxz4wcL5WDL97PB"), Money.Coins(0.004m), fundingTransaction); //Select the chapter here: //var chapter = new Chapter2(); ////call the lesson here //chapter.Lesson1(); //hold open the output window Console.WriteLine("\n\n\nPress enter to continue"); Console.ReadLine(); }