private void sendPendingTransactionReport() {
    final int pendingTransactionsNumber = transactionPool.count();

    final PendingTransactionsReport pendingTransactionsReport =
        ImmutablePendingTransactionsReport.builder()
            .id(enodeURL.getNodeId().toHexString())
            .stats(pendingTransactionsNumber)
            .build();

    sendMessage(webSocket, new EthStatsRequest(PENDING, pendingTransactionsReport));
  }
Sends the number of pending transactions in the pool
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/EthStatsService.java