fix(txDetails): Adding additional metadata to GET slp/txDetails

This commit is contained in:
Chris Troutner
2020-11-29 17:56:22 -08:00
parent 105ecd6305
commit 1bf8e59097
+5 -3
View File
@@ -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 = []