Exemplo n.º 1
0
        public async Task <Block> Invoke(BigInteger height)
        {
            var request  = new GetBlockByHeightRequestMessage(height);
            var response = await Invoke(request);

            var bs = new BlockSerializer();

            return(bs.Deserialize(response.Result));
        }
Exemplo n.º 2
0
        public async Task <Block> Invoke()
        {
            var request  = new GetLastBlockRequestMessage();
            var response = await Invoke(request);

            var bs = new BlockSerializer();

            return(bs.Deserialize(response.Result));
        }