diff --git a/src/endpoints/transactions/transaction.service.ts b/src/endpoints/transactions/transaction.service.ts index 605f60d9d..cab7c6120 100644 --- a/src/endpoints/transactions/transaction.service.ts +++ b/src/endpoints/transactions/transaction.service.ts @@ -249,6 +249,9 @@ export class TransactionService { async tryGetTransactionFromElastic(txHash: string): Promise { try { const result = await this.elasticService.getItem('transactions', 'txHash', txHash); + if (!result) { + return null; + } if (result.scResults) { result.results = result.scResults;