public void voteValidatorAsWitness() { 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(); var balance = lib.getBalance().Result; var requiredBalance = lib.witnessRequiredBalancePercent().Result; if (candidate != null) { var tx = lib.voteValidatorAsWitness(candidate.address, balance * requiredBalance / 100m, false, true, null).Result; } }