private List<TransactionWithMetadata> formatTransactions(
      final List<Transaction> txs,
      final long blockNumber,
      final Optional<Wei> baseFee,
      final Hash blockHash) {
    final int count = txs.size();
    final List<TransactionWithMetadata> result = new ArrayList<>(count);
    for (int i = 0; i < count; i++) {
      result.add(new TransactionWithMetadata(txs.get(i), blockNumber, baseFee, blockHash, i));
    }
    return result;
  }
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