txq
Version:
TXQ: Bitcoin Transaction Storage Queue Service
22 lines (18 loc) • 528 B
text/typescript
import { Service, Inject } from 'typedi';
import { UseCase } from '../UseCase';
import { UseCaseOutcome } from '../UseCaseOutcome';
('getTxsDlq')
export default class GetTxsDlq extends UseCase {
constructor(
('txsyncService') private txsyncService,
('logger') private logger) {
super();
}
public async run(params: { dlq?: string}): Promise<UseCaseOutcome> {
let txs = await this.txsyncService.getTxsDlq(params.dlq);
return {
success: true,
result: txs
};
}
}