Browse Source

05/25/2021 12:59:45 PM MST

master
coldstar 3 years ago
parent
commit
c570d3d1bb
1 changed files with 14 additions and 6 deletions
  1. +14
    -6
      app/rpcApi.js

+ 14
- 6
app/rpcApi.js View File

@@ -433,16 +433,24 @@ function getBalanceFromAddress(rpcClient, address) {

return new Promise(function(resolve, reject) {
client.cmd("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'", function(err, result, resHeaders) {
if (err) {
console.log("Error 3017hfwe0f: " + err);

reject(err);
console.log(result);
console.log(err);
console.log(resHeaders);

return;
}
res.send(JSON.stringify(result, null, 4));

resolve(result);
/*
if (err) {
console.log("Error : " + err);

reject(err);

return;
}

resolve(result);
*/

});
});


Loading…
Cancel
Save