diff --git a/src/routes/v3/slp.js b/src/routes/v3/slp.js index 97a7e1f..8e4301e 100644 --- a/src/routes/v3/slp.js +++ b/src/routes/v3/slp.js @@ -1251,6 +1251,8 @@ class Slp { const tokenRes = await _this.axios.request(opt) // console.log(`tokenRes: ${util.inspect(tokenRes)}`) + // Return 'not found' error if both the confirmed and unconfirmed + // collections are empty. if (tokenRes.data.c.length === 0 && tokenRes.data.u.length === 0) { res.status(404) return res.json({ error: 'TXID not found' }) @@ -1437,9 +1439,9 @@ class Slp { sendOutputs.push(string.toString()) }) - // Because you are not using insight, you do not get the sending addresses from an indexer - // or from the node - // However, they are available from the SLPDB output + // Because you are not using Insight API indexer, you do not get the + // sending addresses from an indexer or from the node. + // However, they are available from the SLPDB output. const tokenInputs = transaction.in // Collect the input addresses const sendInputs = []