class TxPoolModuleImpl implements TxPoolModule {

    @Override
    public String inspect() {
        Map<String, JsonNode> contentProps = new HashMap<>();
        Map<UscAddress, Map<BigInteger, List<Transaction>>> pendingGrouped = groupTransactions(transactionPool.getPendingTransactions());
        Map<UscAddress, Map<BigInteger, List<Transaction>>> queuedGrouped = groupTransactions(transactionPool.getQueuedTransactions());
        contentProps.put(PENDING, serializeTransactions(pendingGrouped, this::summarySerializer));
        contentProps.put(QUEUED, serializeTransactions(queuedGrouped, this::summarySerializer));
        JsonNode node = jsonNodeFactory.objectNode().setAll(contentProps);
        return node.toString();
    }

    @Autowired public  TxPoolModuleImpl(TransactionPool transactionPool);

}