class TxPoolModuleImpl implements TxPoolModule {

    @Override
    public String status() {
        Map<String, JsonNode> txProps = new HashMap<>();
        txProps.put(PENDING, jsonNodeFactory.numberNode(transactionPool.getPendingTransactions().size()));
        txProps.put(QUEUED, jsonNodeFactory.numberNode(transactionPool.getQueuedTransactions().size()));
        JsonNode node = jsonNodeFactory.objectNode().setAll(txProps);
        return node.toString();
    }

    @Autowired public  TxPoolModuleImpl(TransactionPool transactionPool);

}