/// <summary> /// Gets the newest gas price estimates. /// </summary> private void GetUpdatedGasPrices() => GasUtils.EstimateGasPrice().OnSuccess(price => UpdateAllGasObservables(new HexBigInteger(price)));
public async Task EstimateGasPrice() { BigInteger gasPrice = await GasUtils.EstimateGasPrice(GasUtils.GasPriceTarget.Standard); Assert.IsTrue(gasPrice > 0); }