public async void TestGetHeight()
        {
            var req = new PeerBaseRequest()
            {
                //Nethash = "e90d39ac200c495b97deb6d9700745177c7fc4aa80a404108ec820cbeced054c"
            };
            var response = await _api.GetPeerHeightAsync(req);

            Assert.IsTrue(response.Height != null, $"Unable to retrieve Height. Response={response}");
            Debug.WriteLine(response.Height);
        }
        /// <summary>
        /// Gets peer list from remote peer asynchronously
        /// </summary>
        /// <returns>Peers list</returns>
        public async Task <PeerListResponse> GetPeerListAsync(PeerBaseRequest req)
        {
            _url.Path = Constants.PeerGetList;
            var headerValues = req.GetHeaderValues().ToList();

            AddHeaders(headerValues);
            var response = await _client.GetJsonAsync <PeerListResponse>(_url.ToString());

            ResetRequest(headerValues);
            return(response);
        }
        /// <summary>
        /// Gets peer blocks from remote peer synchronously
        /// </summary>
        /// <returns>Blocks list</returns>
        public PeerBlocksResponse GetPeerBlocks(PeerBaseRequest req)
        {
            var response = GetPeerBlocksAsync(req).GetAwaiter().GetResult();

            return(response);
        }