Exemple #1
0
 public NeoApiAccountService(IClient client) : base(client)
 {
     GetAccountState = new NeoGetAccountState(client);
     ValidateAddress = new NeoValidateAddress(client);
     GetNewAddress   = new NeoGetNewAddress(client);
     GetBalance      = new NeoGetBalance(client);
     ListAddresses   = new NeoListAddresses(client);
     DumpPrivateKey  = new NeoDumpPrivateKey(client);
     GetWalletHeight = new NeoGetWalletHeight(client);
 }
        public override async Task <long> ExecuteAsync(IClient client)
        {
            var walletHeight = new NeoGetWalletHeight(client);

            return(await walletHeight.SendRequestAsync());
        }