Example #1
0
        public void voteValidatorAsServiceProvider()
        {
            var lib    = new RecentCore(NodeUrl);
            var wallet = lib.importWalletFromSeedPhrase("combine close before lawsuit asthma glimpse yard debate mixture stool adjust ride");
            var epoch  = lib.getCurrentValidatorsEpoch().Result + 1;

            var  candidates = lib.getCandidatesDetailsByEpoch(epoch).Result;
            var  candidate  = candidates.FirstOrDefault();
            uint freeMBs    = 1;
            var  balance    = lib.getBalance().Result;

            if (candidate != null)
            {
                var tx = lib.voteValidatorAsServiceProvider(candidate.address, freeMBs, false, true, null).Result;
            }
        }