Exemplo n.º 1
0
        public static bool SendMany()
        {
            Console.WriteLine("Starting SendMany tests...");

            Bitcoind.PayToAddress[] outputsToCB2 = new Bitcoind.PayToAddress[1];
            Bitcoind.PayToAddress   outputToCB2  = new Bitcoind.PayToAddress();
            outputToCB2.address = "msvqm9b8qV3cFLGXDifiEpPunZunwKwDaZ";
            outputToCB2.amount  = "0.1";
            outputsToCB2 [0]    = outputToCB2;

            Bitcoind.PayToAddress[] outputsToCust2 = new Bitcoind.PayToAddress[1];
            Bitcoind.PayToAddress   outputToCust2  = new Bitcoind.PayToAddress();
            outputToCust2.address = "n1dPhwHRC8jNwUEJD7jThf4RkFVvcYLqmz";
            outputToCust2.amount  = "0.1";
            outputsToCust2 [0]    = outputToCust2;

            Bitcoind.PayToAddress[] outputs2 = new Bitcoind.PayToAddress[2];
            outputs2 [0] = outputToCB2;
            outputs2 [1] = outputToCust2;

            Console.WriteLine("SendMany: " + Bitcoind.SendMany("cust2", outputsToCB2));
            Console.WriteLine("SendMany: " + Bitcoind.SendMany("cb2", outputsToCust2));
            Console.WriteLine("SendMany: " + Bitcoind.SendMany("cust2", outputs2, "3"));
            Console.WriteLine("SendMany: " + Bitcoind.SendMany("cb2", outputs2, "3", "refund"));

            return(true);
        }