|
|
@@ -432,11 +432,11 @@ function getBalanceFromAddress(rpcClient, address) { |
|
|
|
console.log("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'"); |
|
|
|
|
|
|
|
return new Promise(function(resolve, reject) { |
|
|
|
client.cmd("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'", "", function(err2, result2, resHeaders2) { |
|
|
|
if (err2) { |
|
|
|
console.log("Error 3017hfwe0f: " + err2); |
|
|
|
client.cmd("getaddressbalance", " \'{\"addresses\": [\"" + address + "\"]}\'", function(err, result, resHeaders) { |
|
|
|
if (err) { |
|
|
|
console.log("Error 3017hfwe0f: " + err); |
|
|
|
|
|
|
|
reject(err2); |
|
|
|
reject(err); |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|