Beispiel #1
0
        public static bool AddMultiSigAddress()
        {
            Console.WriteLine("Starting AddMultiSigAddress tests...");
            // Note that you can use pubKeys or addresses.
            string[] pubKeys3 = { "03be117fab1593c1f5aa43353df54a0920fc699f089e872f36a40599688f566a47",
                                  "02558f523c7b6c97e10d89348c9b93b7ee7d860f62027f932eb150d4ba6e41c278",
                                  "032973a0a39b810f1b3b351241e1ebe71ab21159e2068ddc352bb19d1c4f6f3d95" };
            string   address = Bitcoind.AddMultiSigAddress(2, pubKeys3);           //, "testMultiSigAcct1");

            if (address.Length != 35)
            {
                Console.WriteLine("(addMultiSig - No acct) Invalid address: " + address);
                return(false);
            }
            address = Bitcoind.AddMultiSigAddress(2, pubKeys3, "testMultiSigAcct1");
            if (address.Length != 35)
            {
                Console.WriteLine("(addMultiSig - With acct) Invalid address: " + address);
                return(false);
            }
            return(true);
        }