private Optional<Wei> getBlobGasPrice(
      final Transaction transaction, final BlockHeader header, final ProtocolSpec protocolSpec) {
    if (transaction.getType().supportsBlob()) {
      return blockchain
          .getBlockHeader(header.getParentHash())
          .map(
              parentHeader ->
                  protocolSpec
                      .getFeeMarket()
                      .blobGasPricePerGas(
                          calculateExcessBlobGasForParent(protocolSpec, parentHeader)));
    }
    return Optional.empty();
  }
Calculates the blob gas price for data in a transaction.

@param transaction the transaction to calculate the gas price for
@param header the block header of the current block
@param protocolSpec the protocol specification to use for gas price calculation
@return an Optional containing the blob gas price for data if the transaction type supports
    blobs, otherwise returns an empty Optional
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/query/BlockchainQueries.java