private <T> Optional<T> fromAccount(
      final Address address,
      final Hash blockHash,
      final Function<Account, T> getter,
      final T noAccountValue) {
    return getAndMapWorldState(
        blockHash,
        worldState ->
            Optional.ofNullable(worldState.get(address))
                .map(getter)
                .or(() -> Optional.ofNullable(noAccountValue)));
  }
Calculate and return the value of the base fee for the next block, if the network has a base
fee market, otherwise return empty.

@return the optional base fee
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/query/BlockchainQueries.java