Ejemplo n.º 1
0
        public static void ChangeApiEndPoints()
        {
            Wallet        wallet        = Wallet.FromJson(walletJson);
            WalletManager walletManager = new WalletManager(
                new NeoScanRestService(NeoScanNet.TestNet), new RpcClient(new Uri("http://seed4.travala.com:10332")), wallet);

            var beforeChanging = walletManager.GetDefaultAccount().TransactionManager.Client;
            var secondClient   = new RpcClient(new Uri("https://pyrpc1.narrative.network:443"));
            var secondRest     = new NeoScanRestService("http://86.715.152.211");

            walletManager.ChangeApiEndPoints(secondClient, secondRest);
            var afterChanging = walletManager.GetDefaultAccount().TransactionManager.Client;

            Assert.NotEqual(beforeChanging, afterChanging);
        }