/// <inheritdoc />
        public async Task <BigInteger> GetBlockHeightAsync()
        {
            var           blockNumberHandler = new EthBlockNumber(this.web3.Client);
            HexBigInteger block = await blockNumberHandler.SendRequestAsync().ConfigureAwait(false);

            return(block.Value);
        }
示例#2
0
        public override async Task <HexBigInteger> ExecuteAsync(IClient client)
        {
            var ethBlockNumber = new EthBlockNumber(client);

            return(await ethBlockNumber.SendRequestAsync());
        }
示例#3
0
        public async Task <dynamic> ExecuteTestAsync(RpcClient client)
        {
            var ethBlockNumber = new EthBlockNumber(client);

            return(await ethBlockNumber.SendRequestAsync());
        }
 public async Task<dynamic> ExecuteTestAsync(RpcClient client)
 {
     var ethBlockNumber = new EthBlockNumber(client);
     return await ethBlockNumber.SendRequestAsync();
 }