mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Adding satoshis property to utxos returned by Blockbook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user