Ejemplo n.º 1
0
        private bool OnClaimCommand(string[] args)
        {
            if (NoWallet())
            {
                return(true);
            }

            Coins coins = new Coins(Program.Wallet, system);

            switch (args[1].ToLower())
            {
            case "gas":
                ClaimTransaction tx = coins.Claim();
                if (tx != null)
                {
                    Console.WriteLine($"Tranaction Suceeded: {tx.Hash}");
                }
                return(true);

            default:
                return(base.OnCommand(args));
            }
        }