mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Support unconfirmed slp txs
This commit is contained in:
@@ -1251,7 +1251,7 @@ class Slp {
|
||||
const tokenRes = await _this.axios.request(opt)
|
||||
// console.log(`tokenRes: ${util.inspect(tokenRes)}`)
|
||||
|
||||
if (tokenRes.data.c.length === 0) {
|
||||
if (tokenRes.data.c.length === 0 && tokenRes.data.u.length === 0) {
|
||||
res.status(404)
|
||||
return res.json({ error: 'TXID not found' })
|
||||
}
|
||||
@@ -1459,7 +1459,7 @@ class Slp {
|
||||
tokenIdHex: transaction.slp.detail.tokenIdHex,
|
||||
sendOutputs: sendOutputs,
|
||||
sendInputsFull: sendInputs,
|
||||
sendOutputsFull: transaction.slp.detail.outputs,
|
||||
sendOutputsFull: transaction.slp.detail.outputs
|
||||
},
|
||||
tokenIsValid: transaction.slp.valid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user