|
|
@ -201,7 +201,9 @@ cJSON *LP_coinjson(struct iguana_info *coin,int32_t showwif) |
|
|
|
if ( coin->userpass[0] != 0 ) |
|
|
|
{ |
|
|
|
jaddnum(item,"height",LP_getheight(coin)); |
|
|
|
balance = LP_RTsmartbalance(coin); |
|
|
|
if ( coin->electrum != 0 ) |
|
|
|
balance = LP_unspents_load(coin->symbol,coin->smartaddr); |
|
|
|
else balance = LP_RTsmartbalance(coin); |
|
|
|
jaddnum(item,"balance",dstr(balance)); |
|
|
|
jaddnum(item,"KMDvalue",dstr(LP_KMDvalue(coin,balance))); |
|
|
|
} |
|
|
|