diff --git a/basilisk/basilisk_bitcoin.c b/basilisk/basilisk_bitcoin.c index c78f591f1..86059e197 100755 --- a/basilisk/basilisk_bitcoin.c +++ b/basilisk/basilisk_bitcoin.c @@ -588,10 +588,14 @@ char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct iguana_info *coi { free_json(txobj); resultobj = cJSON_CreateObject(); - jaddstr(resultobj,"rawtx",rawtx), free(rawtx); - jadd(resultobj,"vins",vins); - retstr = jprint(basilisk_resultsjson(myinfo,coin->symbol,remoteaddr,basilisktag,timeoutmillis,jprint(resultobj,1)),1); - return(retstr); + valsobj = cJSON_CreateObject(); + jaddstr(valsobj,"rawtx",rawtx), free(rawtx); + jadd(valsobj,"vins",vins); + jadd(resultobj,"vals",valsobj); + jaddstr(resultobj,"agent","basilisk"); + jaddstr(resultobj,"method","result"); + //retstr = jprint(basilisk_resultsjson(myinfo,coin->symbol,remoteaddr,basilisktag,timeoutmillis,jprint(resultobj,1)),1); + return(jprint(resultobj,1)); } else free(rawtx); } }