|
|
@@ -426,10 +426,10 @@ function getBlockData(rpcClient, blockHash, txLimit, txOffset) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function getBalanceFromAddress(rpcClient, address) { |
|
|
|
function getBalance(rpcClient, address) { |
|
|
|
console.log("getBalanceFromAddress: " + address); |
|
|
|
|
|
|
|
console.log("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'"); |
|
|
|
console.log("getbalance", " \'{\"addresses\": [\"" + address + "\"]}\'"); |
|
|
|
|
|
|
|
return new Promise(function(resolve, reject) { |
|
|
|
client.cmd("getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'", function(err, result, resHeaders) { |
|
|
@@ -463,7 +463,7 @@ module.exports = { |
|
|
|
getBlockByHeight: getBlockByHeight, |
|
|
|
getBlocksByHeight: getBlocksByHeight, |
|
|
|
getBlockByHash: getBlockByHash, |
|
|
|
getBalanceFromAddress: getBalanceFromAddress, |
|
|
|
getBalance: getBalance, |
|
|
|
getTransactionInputs: getTransactionInputs, |
|
|
|
getBlockData: getBlockData, |
|
|
|
getRawTransaction: getRawTransaction, |
|
|
|