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