Beispiel #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 <string> ExecuteAsync(IClient client)
        {
            var bestBlockHash = new NeoGetBestBlockHash(client);

            return(await bestBlockHash.SendRequestAsync());
        }