private int logIndexOffset(
      final Hash transactionHash,
      final List<TransactionReceipt> receipts,
      final List<Transaction> transactions) {
    int logIndexOffset = 0;
    for (int i = 0; i < receipts.size(); i++) {
      if (transactions.get(i).getHash().equals(transactionHash)) {
        break;
      }

      logIndexOffset += receipts.get(i).getLogsList().size();
    }

    return logIndexOffset;
  }
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