Browse Source

05/25/2021 11:42:03 AM MST

master
coldstar 3 years ago
parent
commit
f372cb0674
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/rpcApi.js

+ 2
- 0
app/rpcApi.js View File

@@ -429,6 +429,8 @@ function getBlockData(rpcClient, blockHash, txLimit, txOffset) {
function getBalanceFromAddress(rpcClient, address) { function getBalanceFromAddress(rpcClient, address) {
console.log("getBalanceFromAddress: " + address); console.log("getBalanceFromAddress: " + address);


console.log("getaddressbalance\'{\"addresses\": [\"" + address + "\"]}\'");

return new Promise(function(resolve, reject) { 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) { if (err2) {


Loading…
Cancel
Save