Adding satoshis property to utxos returned by Blockbook

This commit is contained in:
Chris Troutner
2019-10-06 11:09:36 -07:00
parent a439bd047d
commit 6b8f10b2ce
+3
View File
@@ -226,6 +226,9 @@ async function utxosFromBlockbook(thisAddress) {
const retData = axiosResponse.data
//console.log(`retData: ${util.inspect(retData)}`)
// Add the satoshis property.
retData.satoshis = Number(retData.value)
return retData
} catch (err) {
// Dev Note: Do not log error messages here. Throw them instead and let the