|
@ -67,6 +67,7 @@ uint64_t LP_txvalue(char *symbol,bits256 txid,int32_t vout) |
|
|
uint64_t value = 0; cJSON *txobj,*vouts,*utxoobj; int32_t numvouts; |
|
|
uint64_t value = 0; cJSON *txobj,*vouts,*utxoobj; int32_t numvouts; |
|
|
if ( (txobj= LP_gettx(symbol,txid)) != 0 ) |
|
|
if ( (txobj= LP_gettx(symbol,txid)) != 0 ) |
|
|
{ |
|
|
{ |
|
|
|
|
|
printf("%s txobj.(%s)\n",symbol,jprint(txobj,0)); |
|
|
if ( (vouts= jarray(&numvouts,txobj,"vout")) != 0 && vout < numvouts ) |
|
|
if ( (vouts= jarray(&numvouts,txobj,"vout")) != 0 && vout < numvouts ) |
|
|
{ |
|
|
{ |
|
|
utxoobj = jitem(vouts,vout); |
|
|
utxoobj = jitem(vouts,vout); |
|
|