Example #1
0
 public NeoApiBlockService(IClient client) : base(client)
 {
     GetBestBlockHash   = new NeoGetBestBlockHash(client);
     GetBlock           = new NeoGetBlock(client);
     GetBlockSerialized = new NeoGetBlockSerialized(client);
     GetBlockCount      = new NeoGetBlockCount(client);
     GetBlockHash       = new NeoGetBlockHash(client);
 }
        public override async Task <int> ExecuteAsync(IClient client)
        {
            var blockCount = new NeoGetBlockCount(client);

            return(await blockCount.SendRequestAsync());
        }