Skip to content

Commit

Permalink
Add endpoint for unconfirmed trx
Browse files Browse the repository at this point in the history
  • Loading branch information
physcom committed Oct 23, 2023
1 parent 1771d1d commit e9a9902
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ class TransferTransactionController(
TransferTransactionResponse(it, receiptService.getByTransactionHash(it.hash))
})

@CrossOrigin
@GetMapping("unconfirmed")
fun getUnconfirmedAll(@Valid request: TransactionPageRequest): PageResponse<UnconfirmedTransferTransaction> {
val unconfirmedTransferTransactions = transactionManager.getAllUnconfirmedTransferTransactions(request)
return PageResponse(unconfirmedTransferTransactions.size.toLong(), unconfirmedTransferTransactions)
}


}

0 comments on commit e9a9902

Please sign in to comment.