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