public List<TransactionAdapter> getTransactions() {
    return transactionPool.getPendingTransactions().stream()
        .map(PendingTransaction::getTransaction)
        .map(TransactionWithMetadata::new)
        .map(tx -> new TransactionAdapter(tx, null))
        .toList();
  }
Returns a list of TransactionAdapter objects for the transactions in the transaction pool.

@return a list of TransactionAdapter objects for the transactions in the transaction pool.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/PendingStateAdapter.java