Browse Source

MSHARK portfolio update

etomic
jl777 7 years ago
parent
commit
314bd87af9
  1. 2
      iguana/exchanges/LP_utxo.c
  2. 2
      iguana/exchanges/mshark

2
iguana/exchanges/LP_utxo.c

@ -637,7 +637,7 @@ cJSON *LP_balances(char *coinaddr)
{ {
bitcoin_addr2rmd160(taddr,&addrtype,rmd160,coinaddr); bitcoin_addr2rmd160(taddr,&addrtype,rmd160,coinaddr);
bitcoin_address(address,coin->taddr,coin->pubtype,rmd160,20); bitcoin_address(address,coin->taddr,coin->pubtype,rmd160,20);
printf("%s taddr.%d addrtype.%u %s -> %s [%c %c].%d\n",coin->symbol,taddr,addrtype,coinaddr,address,coinaddr[0],coinaddr[1],coinaddr[0] == 't' && (coinaddr[1] == '1' || coinaddr[1] == '3')); //printf("%s taddr.%d addrtype.%u %s -> %s [%c %c].%d\n",coin->symbol,taddr,addrtype,coinaddr,address,coinaddr[0],coinaddr[1],coinaddr[0] == 't' && (coinaddr[1] == '1' || coinaddr[1] == '3'));
} }
if ( (retjson= LP_address_balance(coin,address,1)) != 0 ) if ( (retjson= LP_address_balance(coin,address,1)) != 0 )
{ {

2
iguana/exchanges/mshark

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
source userpass source userpass
# this will only work for watchonly addresses that have been rescanned and with active coins # this will only work for watchonly addresses that have been rescanned and with active coins
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"fundvalue\",\"address\":\"RTu3JZZKLJTcfNwBa19dWRagEfQq49STqC\",\"holdings\":[{\"coin\":\"iota\",\"balance\":5000000}],\"divisor\":1400000}" curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"fundvalue\",\"address\":\"RTu3JZZKLJTcfNwBa19dWRagEfQq49STqC\",\"holdings\":[{\"coin\":\"iota\",\"balance\":4500000}, {\"coin\":\"bitcoin-cash\",\"balance\":1500}],\"divisor\":1400000}"

Loading…
Cancel
Save