From c570d3d1bb05d3ca6b0c9fca2ca1b73614b94e8e Mon Sep 17 00:00:00 2001 From: coldstar Date: Tue, 25 May 2021 12:59:46 -0700 Subject: [PATCH] 05/25/2021 12:59:45 PM MST --- app/rpcApi.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/rpcApi.js b/app/rpcApi.js index e37aca5..ed665ba 100755 --- a/app/rpcApi.js +++ b/app/rpcApi.js @@ -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); + */ }); });