|
@ -307,6 +307,7 @@ cJSON *kmd_transactionjson(struct kmd_transactionhh *ptr,char *typestr) |
|
|
cJSON *kmd_unspentjson(struct kmd_transaction *tx,int32_t vout) |
|
|
cJSON *kmd_unspentjson(struct kmd_transaction *tx,int32_t vout) |
|
|
{ |
|
|
{ |
|
|
cJSON *item = cJSON_CreateObject(); |
|
|
cJSON *item = cJSON_CreateObject(); |
|
|
|
|
|
jaddstr(item,"type","received"); |
|
|
jaddbits256(item,"txid",tx->txid); |
|
|
jaddbits256(item,"txid",tx->txid); |
|
|
jaddnum(item,"vout",vout); |
|
|
jaddnum(item,"vout",vout); |
|
|
jaddnum(item,"amount",dstr(tx->vouts[vout].amount)); |
|
|
jaddnum(item,"amount",dstr(tx->vouts[vout].amount)); |
|
|