diff --git a/app/rpcApi.js b/app/rpcApi.js index 14f3593..3478f3f 100755 --- a/app/rpcApi.js +++ b/app/rpcApi.js @@ -429,10 +429,10 @@ function getBlockData(rpcClient, blockHash, txLimit, txOffset) { function getBalanceFromAddress(rpcClient, address) { console.log("getBalanceFromAddress: " + address); - console.log("getaddressbalance\ '{\"addresses\": [\"" + address + "\"]}\'"); + console.log("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'"); return new Promise(function(resolve, reject) { - client.cmd("getaddressbalance", " \'{\"addresses\": [\"" + address + "\"]}\'", function(err2, result2, resHeaders2) { + client.cmd("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'", "", function(err2, result2, resHeaders2) { if (err2) { console.log("Error 3017hfwe0f: " + err2);