From 34a644cfd7320822fd7736121a26e40a0aa0c792 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 17:50:41 +0200 Subject: [PATCH 01/20] Jumblr initial version --- .gitignore | 8 + basilisk/basilisk.c | 3 +- basilisk/jumblr.c | 369 +++ iguana/SuperNET_keys.c | 2 + iguana/autoAPI.md | 4726 +++++++++++++++++++++++++++++++++ iguana/iguana777.h | 11 +- iguana/main.c | 15 + includes/iguana_apideclares.h | 3 + includes/iguana_funcs.h | 1 + 9 files changed, 5136 insertions(+), 2 deletions(-) create mode 100755 basilisk/jumblr.c create mode 100644 iguana/autoAPI.md diff --git a/.gitignore b/.gitignore index b2923f002..ba6f0a1f2 100755 --- a/.gitignore +++ b/.gitignore @@ -152,3 +152,11 @@ iguana/iguana_notary.o-54f98cc3 iguana/basilisk.o-2ad8cb38 iguana/pangea_hand.o-02d25ec3 + +iguana/confs/4dfa301d0adf61f0ec08e4d4cb4444f4fc377f45f5d6b1da0814033920d72353 + +iguana/help.json + +iguana/index7778.html + +*.json diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 9e717e99e..e4760e040 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -492,6 +492,7 @@ int32_t basilisk_relayid(struct supernet_info *myinfo,uint32_t ipbits) #include "basilisk_ping.c" #include "basilisk_vote.c" #include "basilisk_CMD.c" +#include "jumblr.c" void basilisk_functions(struct iguana_info *coin,int32_t protocol) { @@ -870,7 +871,7 @@ int32_t basilisk_issued_purge(struct supernet_info *myinfo,int32_t timepad) void basilisks_loop(void *arg) { static uint32_t counter; - struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct dpow_info *dp; + struct iguana_info *relay; struct supernet_info *myinfo = arg; int32_t iter; double startmilli,endmilli; struct dpow_info *dp; iter = 0; relay = iguana_coinfind("RELAY"); printf("start basilisk loop\n"); diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c new file mode 100755 index 000000000..041bfe1c6 --- /dev/null +++ b/basilisk/jumblr.c @@ -0,0 +1,369 @@ +/****************************************************************************** + * Copyright © 2014-2017 The SuperNET Developers. * + * * + * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * + * the top-level directory of this distribution for the individual copyright * + * holder information and the developer policies on copyright and licensing. * + * * + * Unless otherwise agreed in a custom licensing agreement, no part of the * + * SuperNET software, including this file may be copied, modified, propagated * + * or distributed except according to the terms contained in the LICENSE file * + * * + * Removal or modification of this copyright notice is prohibited. * + * * + ******************************************************************************/ + +// included from basilisk.c +// connect DEX to jumblr-core + +/* + z_exportkey "zaddr" + z_exportwallet "filename" + z_getoperationstatus (["operationid", ... ]) + z_gettotalbalance ( minconf ) + z_importkey "zkey" ( rescan ) + z_importwallet "filename" + z_listaddresses + z_sendmany "fromaddress" [{"address":... ,"amount":..., "memo":""},...] ( minconf ) ( fee ) + */ + +#define JUMBLR_INCR 99 +#define JUMBLR_TXFEE 0.01 +#define JUMBLR_ADDR "RGhxXpXSSBTBm9EvNsXnTQczthMCxHX91t" +#define JUMBLR_BTCADDR "18RmTJe9qMech8siuhYfMtHo8RtcN1obC6" +#define JUMBLR_FEE 0.001 +#define JUMBLR_DEPOSITPREFIX "deposit " + +struct jumblr_item *jumblr_opidfind(struct supernet_info *myinfo,char *opid) +{ + struct jumblr_item *ptr; + HASH_FIND(hh,myinfo->jumblrs,opid,(int32_t)strlen(opid),ptr); + return(ptr); +} + +struct jumblr_item *jumblr_opidadd(struct supernet_info *myinfo,struct iguana_info *coin,char *opid) +{ + struct jumblr_item *ptr; + if ( (ptr= jumblr_opidfind(myinfo,opid)) == 0 ) + { + ptr = calloc(1,sizeof(*ptr)); + safecopy(ptr->opid,opid,sizeof(ptr->opid)); + HASH_ADD_KEYPTR(hh,myinfo->jumblrs,ptr->opid,(int32_t)strlen(ptr->opid),ptr); + if ( ptr != jumblr_opidfind(myinfo,opid) ) + printf("jumblr_opidadd.(%s) ERROR, couldnt find after add\n",opid); + } + return(ptr); +} + +char *jumblr_zgetnewaddress(struct supernet_info *myinfo,struct iguana_info *coin) +{ + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_getnewaddress","")); +} + +char *jumblr_zlistoperationids(struct supernet_info *myinfo,struct iguana_info *coin) +{ + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_listoperationids","")); +} + +char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info *coin,char *opid) +{ + char params[1024]; + sprintf(params,"[\"%s\"]",opid); + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_getoperationresult",params)); +} + +char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) +{ + char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; + sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}]], 1, %.8f",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); +} + +char *jumblr_sendz_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddrS,char *zaddrD,double amount) +{ + char params[1024]; double fee = (amount-2*JUMBLR_TXFEE) * JUMBLR_FEE; + sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); +} + +char *jumblr_sendz_to_t(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddr,char *taddr,double amount) +{ + char params[1024]; double fee = (amount-JUMBLR_TXFEE) * JUMBLR_FEE; + sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); +} + +char *jumblr_zlistreceivedbyaddress(struct supernet_info *myinfo,struct iguana_info *coin,char *addr) +{ + char params[1024]; + sprintf(params,"[\"%s\", 1]",addr); + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_listreceivedbyaddress",params)); +} + +char *jumblr_zgetbalance(struct supernet_info *myinfo,struct iguana_info *coin,char *addr) +{ + char params[1024]; + sprintf(params,"[\"%s\", 1]",addr); + return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_getbalance",params)); +} + +int64_t jumblr_receivedby(struct supernet_info *myinfo,struct iguana_info *coin,char *addr) +{ + char *retstr; cJSON *retjson,*item; int32_t i,n; int64_t total = 0; + if ( (retstr= jumblr_zlistreceivedbyaddress(myinfo,coin,addr)) != 0 ) + { + printf("z_listreceivedbyaddress.(%s) -> (%s)\n",addr,retstr); + if ( (retjson= cJSON_Parse(retstr)) != 0 ) + { + if ( (n= cJSON_GetArraySize(retjson)) > 0 ) + { + for (i=0; i SMALLVAL ) + balance = val * SATOSHIDEN; + free(retstr); + } + return(balance); +} + +void jumblr_itemset(struct jumblr_item *ptr,cJSON *item,char *status) +{ + cJSON *params,*amounts,*dest; char *from,*addr; int32_t i,n; int64_t amount; + /*"params" : { + "fromaddress" : "RDhEGYScNQYetCyG75Kf8Fg61UWPdwc1C5", + "amounts" : [ + { + "address" : "zc9s3UdkDFTnnwHrMCr1vYy2WmkjhmTxXNiqC42s7BjeKBVUwk766TTSsrRPKfnX31Bbu8wbrTqnjDqskYGwx48FZMPHvft", + "amount" : 3.00000000 + } + ], + "minconf" : 1, + "fee" : 0.00010000 + }*/ + if ( (params= jobj(item,"params")) != 0 ) + { + if ( (from= jstr(params,"fromaddress")) != 0 ) + safecopy(ptr->src,from,sizeof(ptr->src)); + if ( (amounts= jarray(&n,params,"amounts")) != 0 ) + { + for (i=0; i 0 ) + { + if ( strcmp(addr,JUMBLR_ADDR) == 0 ) + ptr->fee = amount; + else + { + ptr->amount = amount; + safecopy(ptr->dest,addr,sizeof(ptr->dest)); + } + } + } + } + ptr->txfee = jdouble(params,"fee") * SATOSHIDEN; + } +} + +void jumblr_opidupdate(struct supernet_info *myinfo,struct iguana_info *coin,struct jumblr_item *ptr) +{ + char *retstr,*status; cJSON *retjson; + if ( ptr->status == 0 ) + { + if ( (retstr= jumblr_zgetoperationresult(myinfo,coin,ptr->opid)) != 0 ) + { + if ( (retjson= cJSON_Parse(retstr)) != 0 ) + { + if ( (status= jstr(retjson,"status")) != 0 && strcmp(status,"pending") != 0 ) + jumblr_itemset(ptr,retjson,status); + free_json(retjson); + } + free(retstr); + } + } +} + +void jumblr_opidsupdate(struct supernet_info *myinfo,struct iguana_info *coin) +{ + char *retstr; cJSON *array; int32_t i,n; struct jumblr_item *ptr; + if ( (retstr= jumblr_zlistoperationids(myinfo,coin)) != 0 ) + { + if ( (array= cJSON_Parse(retstr)) != 0 ) + { + if ( (n= cJSON_GetArraySize(array)) > 0 ) + { + for (i=0; istatus == 0 ) + jumblr_opidupdate(myinfo,coin,ptr); + } + free_json(array); + } + free(retstr); + } +} + +bits256 jumblr_privkey(struct supernet_info *myinfo,char *BTCaddr,char *KMDaddr,char *prefix) +{ + bits256 privkey,pubkey; uint8_t pubkey33[33]; char passphrase[sizeof(myinfo->jumblr_passphrase) + 64]; + sprintf(passphrase,"%s%s",prefix,myinfo->jumblr_passphrase); + conv_NXTpassword(privkey.bytes,pubkey.bytes,(uint8_t *)passphrase,(int32_t)strlen(passphrase)); + bitcoin_pubkey33(myinfo->ctx,pubkey33,privkey); + bitcoin_address(BTCaddr,0,pubkey33,33); + bitcoin_address(KMDaddr,60,pubkey33,33); + return(privkey); +} + +void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int32_t selector,int32_t modval) +{ + char BTCaddr[64],KMDaddr[64],*zaddr,*retstr; bits256 priv0; uint64_t amount=0,total=0; double fee; struct jumblr_item *ptr,*tmp; uint8_t r; + // if BTC has arrived in deposit address, invoke DEX -> KMD + // if BTC has arrived in destination address, invoke DEX -> BTC + fee = JUMBLR_INCR * JUMBLR_FEE; + OS_randombytes(&r,sizeof(r)); + if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) + { + switch ( selector ) + { + case 0: // public -> z + priv0 = jumblr_privkey(myinfo,BTCaddr,KMDaddr,JUMBLR_DEPOSITPREFIX); + if ( (total= jumblr_balance(myinfo,coin,KMDaddr)) >= (JUMBLR_INCR + 3*(fee+JUMBLR_TXFEE))*SATOSHIDEN ) + { + if ( (r & 7) == 0 ) + { + if ( (zaddr= jumblr_zgetnewaddress(myinfo,coin)) != 0 ) + { + if ( total >= SATOSHIDEN * ((JUMBLR_INCR + 3*fee)*100 + 3*JUMBLR_TXFEE) ) + amount = SATOSHIDEN * ((JUMBLR_INCR + 3*fee)*100 + 3*JUMBLR_TXFEE); + else if ( total >= SATOSHIDEN * ((JUMBLR_INCR + 3*fee)*10 + 3*JUMBLR_TXFEE) ) + amount = SATOSHIDEN * ((JUMBLR_INCR + 3*fee)*10 + 3*JUMBLR_TXFEE); + else amount = SATOSHIDEN * ((JUMBLR_INCR + 3*fee) + 3*JUMBLR_TXFEE); + if ( (retstr= jumblr_sendt_to_z(myinfo,coin,KMDaddr,zaddr,dstr(amount))) != 0 ) + { + printf("sendt_to_z.(%s)\n",retstr); + free(retstr); + } + free(zaddr); + } + } + } + break; + case 1: // z -> z + jumblr_opidsupdate(myinfo,coin); + HASH_ITER(hh,myinfo->jumblrs,ptr,tmp) + { + if ( strlen(ptr->src) < 40 ) + { + if ( (r & 7) == 0 && ptr->spent == 0 && (total= jumblr_balance(myinfo,coin,ptr->dest)) >= (fee + JUMBLR_FEE)*SATOSHIDEN ) + { + if ( (zaddr= jumblr_zgetnewaddress(myinfo,coin)) != 0 ) + { + if ( (retstr= jumblr_sendz_to_z(myinfo,coin,ptr->dest,zaddr,dstr(total))) != 0 ) + { + printf("sendz_to_z.(%s)\n",retstr); + free(retstr); + } + ptr->spent = (uint32_t)time(NULL); + free(zaddr); + break; + } + } + } + } + break; + case 2: // z -> public + jumblr_opidsupdate(myinfo,coin); + HASH_ITER(hh,myinfo->jumblrs,ptr,tmp) + { + if ( strlen(ptr->src) >= 40 ) + { + if ( (r & 7) == 0 && ptr->spent == 0 && (total= jumblr_balance(myinfo,coin,ptr->dest)) >= (fee + JUMBLR_FEE)*SATOSHIDEN ) + { + priv0 = jumblr_privkey(myinfo,BTCaddr,KMDaddr,""); + if ( (retstr= jumblr_sendz_to_t(myinfo,coin,ptr->dest,KMDaddr,dstr(total))) != 0 ) + { + printf("sendz_to_t.(%s)\n",retstr); + free(retstr); + } + ptr->spent = (uint32_t)time(NULL); + break; + } + } + } + break; + } + } +} + +#include "../includes/iguana_apidefs.h" +#include "../includes/iguana_apideclares.h" + +STRING_ARG(jumblr,setpassphrase,passphrase) +{ + cJSON *retjson; char KMDaddr[64],BTCaddr[64]; + if ( passphrase == 0 || passphrase[0] == 0 || (coin= iguana_coinfind("KMD")) == 0 || coin->FULLNODE >= 0 ) + return(clonestr("{\"error\":\"no passphrase or no native komodod\"}")); + else + { + safecopy(myinfo->jumblr_passphrase,passphrase,sizeof(myinfo->jumblr_passphrase)); + retjson = cJSON_CreateObject(); + jaddstr(retjson,"result","success"); + jumblr_privkey(myinfo,BTCaddr,KMDaddr,JUMBLR_DEPOSITPREFIX); + jaddstr(retjson,"BTCdeposit","notyet"); + jaddstr(retjson,"KMDdeposit",KMDaddr); + jumblr_privkey(myinfo,BTCaddr,KMDaddr,""); + jaddstr(retjson,"BTCjumblr","notyet"); + jaddstr(retjson,"KMDjumblr",KMDaddr); + return(clonestr("{\"result\":\"success\"}")); + } +} + +ZERO_ARGS(jumblr,status) +{ + cJSON *retjson; char KMDaddr[64],BTCaddr[64]; struct jumblr_item *ptr,*tmp; int64_t deposited,step_t2z,step_z2z,step_z2t,finished; + if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 && myinfo->jumblr_passphrase[0] != 0 ) + { + jumblr_opidsupdate(myinfo,coin); + retjson = cJSON_CreateObject(); + step_t2z = step_z2z = step_z2t = deposited = finished = 0; + jumblr_privkey(myinfo,BTCaddr,KMDaddr,JUMBLR_DEPOSITPREFIX); + deposited = jumblr_receivedby(myinfo,coin,KMDaddr); + jumblr_privkey(myinfo,BTCaddr,KMDaddr,""); + finished = jumblr_receivedby(myinfo,coin,KMDaddr); + HASH_ITER(hh,myinfo->jumblrs,ptr,tmp) + { + if ( strlen(ptr->src) >= 40 ) + { + if ( strlen(ptr->dest) >= 40 ) + step_z2z += ptr->amount; + else step_z2t += ptr->amount; + } + else step_t2z += ptr->amount; + } + jaddstr(retjson,"result","success"); + jaddnum(retjson,"deposited",dstr(deposited)); + jaddnum(retjson,"t_to_z",dstr(step_t2z)); + jaddnum(retjson,"z_to_z",dstr(step_z2z)); + jaddnum(retjson,"z_to_t",dstr(step_z2t)); + jaddnum(retjson,"finished",dstr(finished)); + jaddnum(retjson,"pending",dstr(deposited) - dstr(finished)); + return(jprint(retjson,1)); + } else return(clonestr("{\"error\":\"no passphrase or no native komodod\"}")); +} + +#include "../includes/iguana_apiundefs.h" diff --git a/iguana/SuperNET_keys.c b/iguana/SuperNET_keys.c index 904da0c83..b44fc1b18 100755 --- a/iguana/SuperNET_keys.c +++ b/iguana/SuperNET_keys.c @@ -465,6 +465,8 @@ THREE_STRINGS(SuperNET,encryptjson,password,permanentfile,payload) free_json(argjson); return(jprint(retjson,1)); } + + #include "../includes/iguana_apiundefs.h" diff --git a/iguana/autoAPI.md b/iguana/autoAPI.md new file mode 100644 index 000000000..59a5b17f5 --- /dev/null +++ b/iguana/autoAPI.md @@ -0,0 +1,4726 @@ + + +dpow API +=== +need to create help/dpow.md file + +## method: pending + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"pending\",\"fiat\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/pending?fiat={string} +``` + +field | value type | Description +--------- | ------- | ----------- +fiat | string | no help info + +## method: notarychains + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"notarychains\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/notarychains +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: active + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"active\",\"maskhex\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/active?maskhex={string} +``` + +field | value type | Description +--------- | ------- | ----------- +maskhex | string | no help info + +## method: ratify + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"ratify\",\"minsigs\":\"{int}\",\"timestamp\":\"{int}\",\"ratified\":\"{array}\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/ratify?minsigs={int}×tamp={int}&ratified={array} +``` + +field | value type | Description +--------- | ------- | ----------- +minsigs | int | no help info +timestamp | int | no help info +ratified | array | no help info + +## method: cancelratify + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"cancelratify\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/cancelratify +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: bindaddr + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"bindaddr\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/bindaddr?ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +ipaddr | string | no help info + +## method: fundnotaries + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"fundnotaries\",\"symbol\":\"{string}\",\"numblocks\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/dpow/fundnotaries?symbol={string}&numblocks={int} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +numblocks | int | no help info + +pax API +=== +need to create help/pax.md file + +## method: start + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"pax\",\"method\":\"start\"}" +``` + +```url +http://127.0.0.1:7778/api/pax/start +``` + +field | value type | Description +--------- | ------- | ----------- + +passthru API +=== +need to create help/passthru.md file + +## method: paxfiats + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"passthru\",\"method\":\"paxfiats\",\"mask\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/passthru/paxfiats?mask={int} +``` + +field | value type | Description +--------- | ------- | ----------- +mask | int | no help info + +zcash API +=== +need to create help/zcash.md file + +## method: passthru + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"zcash\",\"method\":\"passthru\",\"function\":\"{string}\",\"hex\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/zcash/passthru?function={string}&hex={string} +``` + +field | value type | Description +--------- | ------- | ----------- +function | string | no help info +hex | string | no help info + +komodo API +=== +need to create help/komodo.md file + +## method: passthru + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"komodo\",\"method\":\"passthru\",\"function\":\"{string}\",\"hex\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/komodo/passthru?function={string}&hex={string} +``` + +field | value type | Description +--------- | ------- | ----------- +function | string | no help info +hex | string | no help info + +dex API +=== +need to create help/dex.md file + +## method: kvsearch + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvsearch\",\"symbol\":\"{string}\",\"key\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/kvsearch?symbol={string}&key={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +key | string | no help info + +## method: kvupdate + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvupdate\",\"symbol\":\"{string}\",\"key\":\"{string}\",\"value\":\"{string}\",\"flags\":\"{int}\",\"unused\":\"{int}\",\"unusedb\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/kvupdate?symbol={string}&key={string}&value={string}&flags={int}&unused={int}&unusedb={int} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +key | string | no help info +value | string | no help info +flags | int | no help info +unused | int | no help info +unusedb | int | no help info + +## method: send + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"send\",\"hex\":\"{string}\",\"handler\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/send?hex={string}&handler={string} +``` + +field | value type | Description +--------- | ------- | ----------- +hex | string | no help info +handler | string | no help info + +## method: gettransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"gettransaction\",\"txid\":\"{hash}\",\"symbol\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/gettransaction?txid={hash}&symbol={str} +``` + +field | value type | Description +--------- | ------- | ----------- +txid | hash | no help info +symbol | str | no help info + +## method: getinfo + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getinfo\",\"symbol\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/getinfo?symbol={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info + +## method: getnotaries + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getnotaries\",\"symbol\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/getnotaries?symbol={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info + +## method: alladdresses + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"alladdresses\",\"symbol\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/alladdresses?symbol={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info + +## method: getbestblockhash + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbestblockhash\",\"symbol\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/getbestblockhash?symbol={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info + +## method: getblockhash + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getblockhash\",\"symbol\":\"{string}\",\"height\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/getblockhash?symbol={string}&height={int} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +height | int | no help info + +## method: getblock + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getblock\",\"hash\":\"{hash}\",\"symbol\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/getblock?hash={hash}&symbol={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +symbol | str | no help info + +## method: sendrawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"sendrawtransaction\",\"symbol\":\"{string}\",\"signedtx\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/sendrawtransaction?symbol={string}&signedtx={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +signedtx | string | no help info + +## method: gettxout + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"gettxout\",\"txid\":\"{hash}\",\"symbol\":\"{str}\",\"vout\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/gettxout?txid={hash}&symbol={str}&vout={int} +``` + +field | value type | Description +--------- | ------- | ----------- +txid | hash | no help info +symbol | str | no help info +vout | int | no help info + +## method: importaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/importaddress?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: validateaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"validateaddress\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/validateaddress?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: checkaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"checkaddress\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/checkaddress?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: listunspent + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/listunspent?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: listtransactions + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listtransactions\",\"symbol\":\"{string}\",\"address\":\"{string}\",\"count\":\"{float}\",\"skip\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/listtransactions?symbol={string}&address={string}&count={float}&skip={float} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info +count | float | no help info +skip | float | no help info + +## method: listunspent2 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent2\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/listunspent2?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: listtransactions2 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listtransactions2\",\"symbol\":\"{string}\",\"address\":\"{string}\",\"count\":\"{float}\",\"skip\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/listtransactions2?symbol={string}&address={string}&count={float}&skip={float} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info +count | float | no help info +skip | float | no help info + +## method: gettxin + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"gettxin\",\"txid\":\"{hash}\",\"symbol\":\"{str}\",\"vout\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/gettxin?txid={hash}&symbol={str}&vout={int} +``` + +field | value type | Description +--------- | ------- | ----------- +txid | hash | no help info +symbol | str | no help info +vout | int | no help info + +## method: listspent + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listspent\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/listspent?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: getbalance + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/getbalance?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: explorer + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"explorer\",\"symbol\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/dex/explorer?symbol={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info + +basilisk API +=== +need to create help/basilisk.md file + +## method: genesis_opreturn + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"genesis_opreturn\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/genesis_opreturn?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: history + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"history\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/history?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: paxfiats + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"paxfiats\",\"mask\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/paxfiats?mask={int} +``` + +field | value type | Description +--------- | ------- | ----------- +mask | int | no help info + +## method: balances + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"balances\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/balances?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: value + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"value\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/value?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: rawtx + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"rawtx\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/rawtx?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: refresh + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"refresh\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/refresh?symbol={string}&address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +address | string | no help info + +## method: utxorawtx + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"utxorawtx\",\"symbol\":\"{string}\",\"utxos\":\"{array}\",\"vals\":\"{object}\",\"ignore\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/utxorawtx?symbol={string}&utxos={array}&vals={object}&ignore={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +utxos | array | no help info +vals | object | no help info +ignore | string | no help info + +## method: getmessage + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"getmessage\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/getmessage?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: sendmessage + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"sendmessage\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/sendmessage?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: geckoheaders + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckoheaders\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/geckoheaders?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: geckoblock + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckoblock\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/geckoblock?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: geckotx + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckotx\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/geckotx?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: geckoget + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckoget\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/geckoget?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: addrelay + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"addrelay\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/addrelay?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: dispatch + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"dispatch\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/dispatch?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: publish + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"publish\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/publish?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: subscribe + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"subscribe\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/subscribe?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: forward + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"forward\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/forward?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: mailbox + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"mailbox\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/basilisk/mailbox?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +bitcoinrpc API +=== +need to create help/bitcoinrpc.md file + +## method: getinfo + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getinfo\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getinfo +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: getblockcount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getblockcount\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getblockcount +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: getdifficulty + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getdifficulty\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getdifficulty +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: getbestblockhash + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getbestblockhash\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getbestblockhash +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: getblockhash + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getblockhash\",\"height\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getblockhash?height={int} +``` + +field | value type | Description +--------- | ------- | ----------- +height | int | no help info + +## method: getblock + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getblock\",\"blockhash\":\"{hash}\",\"verbose\":\"{int}\",\"remoteonly\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getblock?blockhash={hash}&verbose={int}&remoteonly={int} +``` + +field | value type | Description +--------- | ------- | ----------- +blockhash | hash | no help info +verbose | int | no help info +remoteonly | int | no help info + +## method: getrawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getrawtransaction\",\"txid\":\"{hash}\",\"verbose\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getrawtransaction?txid={hash}&verbose={int} +``` + +field | value type | Description +--------- | ------- | ----------- +txid | hash | no help info +verbose | int | no help info + +## method: gettransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"gettransaction\",\"txid\":\"{hash}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/gettransaction?txid={hash} +``` + +field | value type | Description +--------- | ------- | ----------- +txid | hash | no help info + +## method: gettxout + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"gettxout\",\"txid\":\"{hash}\",\"vout\":\"{int}\",\"mempool\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/gettxout?txid={hash}&vout={int}&mempool={int} +``` + +field | value type | Description +--------- | ------- | ----------- +txid | hash | no help info +vout | int | no help info +mempool | int | no help info + +## method: listunspent + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listunspent\",\"minconf\":\"{int}\",\"maxconf\":\"{int}\",\"array\":\"{array}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listunspent?minconf={int}&maxconf={int}&array={array} +``` + +field | value type | Description +--------- | ------- | ----------- +minconf | int | no help info +maxconf | int | no help info +array | array | no help info + +## method: decodescript + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"decodescript\",\"scriptstr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/decodescript?scriptstr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +scriptstr | string | no help info + +## method: decoderawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"decoderawtransaction\",\"rawtx\":\"{string}\",\"suppress\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/decoderawtransaction?rawtx={string}&suppress={int} +``` + +field | value type | Description +--------- | ------- | ----------- +rawtx | string | no help info +suppress | int | no help info + +## method: validaterawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"validaterawtransaction\",\"rawtx\":\"{string}\",\"suppress\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/validaterawtransaction?rawtx={string}&suppress={int} +``` + +field | value type | Description +--------- | ------- | ----------- +rawtx | string | no help info +suppress | int | no help info + +## method: createrawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"createrawtransaction\",\"vins\":\"{array}\",\"vouts\":\"{object}\",\"locktime\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/createrawtransaction?vins={array}&vouts={object}&locktime={int} +``` + +field | value type | Description +--------- | ------- | ----------- +vins | array | no help info +vouts | object | no help info +locktime | int | no help info + +## method: validatepubkey + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"validatepubkey\",\"pubkey\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/validatepubkey?pubkey={string} +``` + +field | value type | Description +--------- | ------- | ----------- +pubkey | string | no help info + +## method: validateaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"validateaddress\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/validateaddress?address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info + +## method: walletlock + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletlock\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/walletlock +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: walletpassphrase + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletpassphrase\",\"password\":\"{string}\",\"permanentfile\":\"{string}\",\"timeout\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/walletpassphrase?password={string}&permanentfile={string}&timeout={int} +``` + +field | value type | Description +--------- | ------- | ----------- +password | string | no help info +permanentfile | string | no help info +timeout | int | no help info + +## method: encryptwallet + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"encryptwallet\",\"passphrase\":\"{string}\",\"password\":\"{string}\",\"permanentfile\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/encryptwallet?passphrase={string}&password={string}&permanentfile={string} +``` + +field | value type | Description +--------- | ------- | ----------- +passphrase | string | no help info +password | string | no help info +permanentfile | string | no help info + +## method: walletpassphrasechange + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletpassphrasechange\",\"oldpassword\":\"{string}\",\"newpassword\":\"{string}\",\"oldpermanentfile\":\"{string}\",\"permanentfile\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/walletpassphrasechange?oldpassword={string}&newpassword={string}&oldpermanentfile={string}&permanentfile={string} +``` + +field | value type | Description +--------- | ------- | ----------- +oldpassword | string | no help info +newpassword | string | no help info +oldpermanentfile | string | no help info +permanentfile | string | no help info + +## method: dumpwallet + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"dumpwallet\",\"filename\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/dumpwallet?filename={string} +``` + +field | value type | Description +--------- | ------- | ----------- +filename | string | no help info + +## method: backupwallet + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"backupwallet\",\"filename\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/backupwallet?filename={string} +``` + +field | value type | Description +--------- | ------- | ----------- +filename | string | no help info + +## method: importwallet + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"importwallet\",\"filename\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/importwallet?filename={string} +``` + +field | value type | Description +--------- | ------- | ----------- +filename | string | no help info + +## method: getnewaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getnewaddress\",\"account\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getnewaddress?account={string} +``` + +field | value type | Description +--------- | ------- | ----------- +account | string | no help info + +## method: importprivkey + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"importprivkey\",\"wif\":\"{string}\",\"account\":\"{string}\",\"rescan\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/importprivkey?wif={string}&account={string}&rescan={int} +``` + +field | value type | Description +--------- | ------- | ----------- +wif | string | no help info +account | string | no help info +rescan | int | no help info + +## method: importaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"importaddress\",\"address\":\"{string}\",\"account\":\"{string}\",\"rescan\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/importaddress?address={string}&account={string}&rescan={int} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info +account | string | no help info +rescan | int | no help info + +## method: dumpprivkey + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"dumpprivkey\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/dumpprivkey?address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info + +## method: listtransactions + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listtransactions\",\"account\":\"{string}\",\"count\":\"{int}\",\"skip\":\"{int}\",\"includewatchonly\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listtransactions?account={string}&count={int}&skip={int}&includewatchonly={int} +``` + +field | value type | Description +--------- | ------- | ----------- +account | string | no help info +count | int | no help info +skip | int | no help info +includewatchonly | int | no help info + +## method: listreceivedbyaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listreceivedbyaddress\",\"minconf\":\"{int}\",\"includeempty\":\"{int}\",\"flag\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listreceivedbyaddress?minconf={int}&includeempty={int}&flag={int} +``` + +field | value type | Description +--------- | ------- | ----------- +minconf | int | no help info +includeempty | int | no help info +flag | int | no help info + +## method: listreceivedbyaccount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listreceivedbyaccount\",\"confirmations\":\"{int}\",\"includeempty\":\"{int}\",\"watchonly\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listreceivedbyaccount?confirmations={int}&includeempty={int}&watchonly={int} +``` + +field | value type | Description +--------- | ------- | ----------- +confirmations | int | no help info +includeempty | int | no help info +watchonly | int | no help info + +## method: listaccounts + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listaccounts\",\"minconf\":\"{int}\",\"includewatchonly\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listaccounts?minconf={int}&includewatchonly={int} +``` + +field | value type | Description +--------- | ------- | ----------- +minconf | int | no help info +includewatchonly | int | no help info + +## method: listaddressgroupings + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listaddressgroupings\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listaddressgroupings +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: getreceivedbyaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getreceivedbyaddress\",\"address\":\"{string}\",\"minconf\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getreceivedbyaddress?address={string}&minconf={int} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info +minconf | int | no help info + +## method: getreceivedbyaccount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getreceivedbyaccount\",\"account\":\"{string}\",\"includeempty\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getreceivedbyaccount?account={string}&includeempty={int} +``` + +field | value type | Description +--------- | ------- | ----------- +account | string | no help info +includeempty | int | no help info + +## method: getbalance + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getbalance\",\"account\":\"{string}\",\"confirmations\":\"{int}\",\"includeempty\":\"{int}\",\"lastheight\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getbalance?account={string}&confirmations={int}&includeempty={int}&lastheight={int} +``` + +field | value type | Description +--------- | ------- | ----------- +account | string | no help info +confirmations | int | no help info +includeempty | int | no help info +lastheight | int | no help info + +## method: getaddressesbyaccount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getaddressesbyaccount\",\"account\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?account={string} +``` + +field | value type | Description +--------- | ------- | ----------- +account | string | no help info + +## method: getaccount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getaccount\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getaccount?address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info + +## method: getaccountaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getaccountaddress\",\"account\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getaccountaddress?account={string} +``` + +field | value type | Description +--------- | ------- | ----------- +account | string | no help info + +## method: setaccount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"setaccount\",\"address\":\"{string}\",\"account\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/setaccount?address={string}&account={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info +account | string | no help info + +## method: createmultisig + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"createmultisig\",\"M\":\"{int}\",\"pubkeys\":\"{array}\",\"ignore\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/createmultisig?M={int}&pubkeys={array}&ignore={string} +``` + +field | value type | Description +--------- | ------- | ----------- +M | int | no help info +pubkeys | array | no help info +ignore | string | no help info + +## method: addmultisigaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"addmultisigaddress\",\"M\":\"{int}\",\"pubkeys\":\"{array}\",\"account\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/addmultisigaddress?M={int}&pubkeys={array}&account={string} +``` + +field | value type | Description +--------- | ------- | ----------- +M | int | no help info +pubkeys | array | no help info +account | string | no help info + +## method: settxfee + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"settxfee\",\"amount\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/settxfee?amount={float} +``` + +field | value type | Description +--------- | ------- | ----------- +amount | float | no help info + +## method: checkwallet + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"checkwallet\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/checkwallet +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: repairwallet + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"repairwallet\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/repairwallet +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: signrawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"signrawtransaction\",\"rawtx\":\"{string}\",\"vins\":\"{array}\",\"privkeys\":\"{object}\",\"sighash\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/signrawtransaction?rawtx={string}&vins={array}&privkeys={object}&sighash={string} +``` + +field | value type | Description +--------- | ------- | ----------- +rawtx | string | no help info +vins | array | no help info +privkeys | object | no help info +sighash | string | no help info + +## method: signmessage + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"signmessage\",\"address\":\"{string}\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/signmessage?address={string}&message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info +message | string | no help info + +## method: verifymessage + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"verifymessage\",\"address\":\"{string}\",\"sig\":\"{string}\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/verifymessage?address={string}&sig={string}&message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info +sig | string | no help info +message | string | no help info + +## method: sendrawtransaction + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendrawtransaction\",\"rawtx\":\"{string}\",\"allowhighfees\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/sendrawtransaction?rawtx={string}&allowhighfees={int} +``` + +field | value type | Description +--------- | ------- | ----------- +rawtx | string | no help info +allowhighfees | int | no help info + +## method: sendfrom + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendfrom\",\"fromaccount\":\"{string}\",\"toaddress\":\"{string}\",\"amount\":\"{float}\",\"minconf\":\"{int}\",\"comment\":\"{string}\",\"comment2\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/sendfrom?fromaccount={string}&toaddress={string}&amount={float}&minconf={int}&comment={string}&comment2={string} +``` + +field | value type | Description +--------- | ------- | ----------- +fromaccount | string | no help info +toaddress | string | no help info +amount | float | no help info +minconf | int | no help info +comment | string | no help info +comment2 | string | no help info + +## method: sendmany + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendmany\",\"fromaccount\":\"{string}\",\"payments\":\"{array}\",\"minconf\":\"{int}\",\"comment\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/sendmany?fromaccount={string}&payments={array}&minconf={int}&comment={string} +``` + +field | value type | Description +--------- | ------- | ----------- +fromaccount | string | no help info +payments | array | no help info +minconf | int | no help info +comment | string | no help info + +## method: sendtoaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendtoaddress\",\"address\":\"{string}\",\"amount\":\"{float}\",\"comment\":\"{string}\",\"comment2\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/sendtoaddress?address={string}&amount={float}&comment={string}&comment2={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info +amount | float | no help info +comment | string | no help info +comment2 | string | no help info + +## method: lockunspent + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"lockunspent\",\"flag\":\"{int}\",\"array\":\"{array}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/lockunspent?flag={int}&array={array} +``` + +field | value type | Description +--------- | ------- | ----------- +flag | int | no help info +array | array | no help info + +## method: listlockunspent + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listlockunspent\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listlockunspent +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: submitblock + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"submitblock\",\"rawbytes\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/submitblock?rawbytes={string} +``` + +field | value type | Description +--------- | ------- | ----------- +rawbytes | string | no help info + +## method: listsinceblock + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listsinceblock\",\"blockhash\":\"{hash}\",\"target\":\"{int}\",\"flag\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/listsinceblock?blockhash={hash}&target={int}&flag={int} +``` + +field | value type | Description +--------- | ------- | ----------- +blockhash | hash | no help info +target | int | no help info +flag | int | no help info + +## method: gettxoutsetinfo + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"gettxoutsetinfo\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/gettxoutsetinfo +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: getrawchangeaddress + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getrawchangeaddress\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/getrawchangeaddress +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: move + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"move\",\"fromaccount\":\"{string}\",\"toaccount\":\"{string}\",\"amount\":\"{float}\",\"minconf\":\"{int}\",\"comment\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/bitcoinrpc/move?fromaccount={string}&toaccount={string}&amount={float}&minconf={int}&comment={string} +``` + +field | value type | Description +--------- | ------- | ----------- +fromaccount | string | no help info +toaccount | string | no help info +amount | float | no help info +minconf | int | no help info +comment | string | no help info + +iguana API +=== +need to create help/iguana.md file + +## method: splitfunds + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"splitfunds\",\"satoshis\":\"{int}\",\"duplicates\":\"{int}\",\"sendflag\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/splitfunds?satoshis={int}&duplicates={int}&sendflag={int} +``` + +field | value type | Description +--------- | ------- | ----------- +satoshis | int | no help info +duplicates | int | no help info +sendflag | int | no help info + +## method: makekeypair + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"makekeypair\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/makekeypair +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: rates + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"rates\",\"unused\":\"{int}\",\"quotes\":\"{array}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/rates?unused={int}"es={array} +``` + +field | value type | Description +--------- | ------- | ----------- +unused | int | no help info +quotes | array | no help info + +## method: rate + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"rate\",\"base\":\"{string}\",\"rel\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/rate?base={string}&rel={string} +``` + +field | value type | Description +--------- | ------- | ----------- +base | string | no help info +rel | string | no help info + +## method: prices + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"prices\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"period\":\"{int}\",\"start\":\"{int}\",\"end\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/prices?exchange={string}&base={string}&rel={string}&period={int}&start={int}&end={int} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +period | int | no help info +start | int | no help info +end | int | no help info + +## method: snapshot + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"snapshot\",\"symbol\":\"{string}\",\"height\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/snapshot?symbol={string}&height={int} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +height | int | no help info + +## method: dividends + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"dividends\",\"height\":\"{int}\",\"vals\":\"{array}\",\"symbol\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/dividends?height={int}&vals={array}&symbol={string} +``` + +field | value type | Description +--------- | ------- | ----------- +height | int | no help info +vals | array | no help info +symbol | string | no help info + +## method: passthru + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"passthru\",\"asset\":\"{string}\",\"function\":\"{string}\",\"hex\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/passthru?asset={string}&function={string}&hex={string} +``` + +field | value type | Description +--------- | ------- | ----------- +asset | string | no help info +function | string | no help info +hex | string | no help info + +## method: initfastfind + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"initfastfind\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/initfastfind?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: dpow + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"{string}\",\"pubkey\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/dpow?symbol={string}&pubkey={string} +``` + +field | value type | Description +--------- | ------- | ----------- +symbol | string | no help info +pubkey | string | no help info + +## method: peers + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"peers\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/peers?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: maxpeers + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"maxpeers\",\"activecoin\":\"{string}\",\"max\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/maxpeers?activecoin={string}&max={int} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +max | int | no help info + +## method: getconnectioncount + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"getconnectioncount\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/getconnectioncount?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: addcoin + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/addcoin?newcoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +newcoin | string | no help info + +## method: validate + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"validate\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/validate?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: removecoin + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"removecoin\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/removecoin?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: startcoin + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"startcoin\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/startcoin?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: pausecoin + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"pausecoin\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/pausecoin?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: stopcoin + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"stopcoin\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/stopcoin?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: addnode + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnode\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/addnode?activecoin={string}&ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +ipaddr | string | no help info + +## method: addnotary + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/addnotary?ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +ipaddr | string | no help info + +## method: persistent + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"persistent\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/persistent?activecoin={string}&ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +ipaddr | string | no help info + +## method: removenode + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"removenode\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/removenode?activecoin={string}&ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +ipaddr | string | no help info + +## method: oneshot + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"oneshot\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/oneshot?activecoin={string}&ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +ipaddr | string | no help info + +## method: nodestatus + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"nodestatus\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/nodestatus?activecoin={string}&ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +ipaddr | string | no help info + +## method: balance + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"balance\",\"activecoin\":\"{string}\",\"address\":\"{string}\",\"heightd\":\"{float}\",\"minconfd\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/balance?activecoin={string}&address={string}&heightd={float}&minconfd={float} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +address | string | no help info +heightd | float | no help info +minconfd | float | no help info + +## method: spendmsig + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"spendmsig\",\"activecoin\":\"{string}\",\"vintxid\":\"{hash}\",\"vinvout\":\"{int}\",\"destaddress\":\"{string}\",\"destamount\":\"{float}\",\"destaddress2\":\"{string}\",\"destamount2\":\"{float}\",\"M\":\"{int}\",\"N\":\"{int}\",\"pubA\":\"{string}\",\"wifA\":\"{string}\",\"pubB\":\"{string}\",\"wifB\":\"{string}\",\"pubC\":\"{string}\",\"wifC\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/spendmsig?activecoin={string}&vintxid={hash}&vinvout={int}&destaddress={string}&destamount={float}&destaddress2={string}&destamount2={float}&M={int}&N={int}&pubA={string}&wifA={string}&pubB={string}&wifB={string}&pubC={string}&wifC={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +vintxid | hash | no help info +vinvout | int | no help info +destaddress | string | no help info +destamount | float | no help info +destaddress2 | string | no help info +destamount2 | float | no help info +M | int | no help info +N | int | no help info +pubA | string | no help info +wifA | string | no help info +pubB | string | no help info +wifB | string | no help info +pubC | string | no help info +wifC | string | no help info + +## method: bundleaddresses + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"bundleaddresses\",\"activecoin\":\"{string}\",\"height\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/bundleaddresses?activecoin={string}&height={int} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +height | int | no help info + +## method: bundlehashes + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"bundlehashes\",\"activecoin\":\"{string}\",\"height\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/bundlehashes?activecoin={string}&height={int} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +height | int | no help info + +## method: PoSweights + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"PoSweights\",\"activecoin\":\"{string}\",\"height\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/PoSweights?activecoin={string}&height={int} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info +height | int | no help info + +## method: stakers + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"stakers\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/iguana/stakers?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +jumblr API +=== +need to create help/jumblr.md file + +## method: setpassphrase + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"jumblr\",\"method\":\"setpassphrase\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/jumblr/setpassphrase?passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +passphrase | string | no help info + +InstantDEX API +=== +need to create help/InstantDEX.md file + +## method: allcoins + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"allcoins\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/allcoins +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: available + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"available\",\"source\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/available?source={string} +``` + +field | value type | Description +--------- | ------- | ----------- +source | string | no help info + +## method: request + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"request\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/request?hash={hash}&vals={array}&hexstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +hexstr | str | no help info + +## method: incoming + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"incoming\",\"requestid\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/incoming?requestid={int} +``` + +field | value type | Description +--------- | ------- | ----------- +requestid | int | no help info + +## method: automatched + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"automatched\",\"requestid\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/automatched?requestid={int} +``` + +field | value type | Description +--------- | ------- | ----------- +requestid | int | no help info + +## method: accept + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"accept\",\"requestid\":\"{int}\",\"quoteid\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/accept?requestid={int}"eid={int} +``` + +field | value type | Description +--------- | ------- | ----------- +requestid | int | no help info +quoteid | int | no help info + +## method: buy + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"buy\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"dotrade\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/buy?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&dotrade={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +price | float | no help info +volume | float | no help info +dotrade | float | no help info + +## method: sell + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"sell\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"dotrade\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/sell?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&dotrade={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +price | float | no help info +volume | float | no help info +dotrade | float | no help info + +## method: withdraw + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"withdraw\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"destaddr\":\"{string}\",\"amount\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/withdraw?exchange={string}&base={string}&destaddr={string}&amount={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +destaddr | string | no help info +amount | float | no help info + +## method: apikeypair + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"apikeypair\",\"exchange\":\"{string}\",\"apikey\":\"{string}\",\"apisecret\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/apikeypair?exchange={string}&apikey={string}&apisecret={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +apikey | string | no help info +apisecret | string | no help info + +## method: setuserid + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"setuserid\",\"exchange\":\"{string}\",\"userid\":\"{string}\",\"tradepassword\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/setuserid?exchange={string}&userid={string}&tradepassword={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +userid | string | no help info +tradepassword | string | no help info + +## method: balance + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"balance\",\"exchange\":\"{string}\",\"base\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/balance?exchange={string}&base={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info + +## method: orderstatus + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"orderstatus\",\"exchange\":\"{string}\",\"orderid\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/orderstatus?exchange={string}&orderid={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +orderid | string | no help info + +## method: cancelorder + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"cancelorder\",\"exchange\":\"{string}\",\"orderid\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/cancelorder?exchange={string}&orderid={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +orderid | string | no help info + +## method: openorders + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"openorders\",\"exchange\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/openorders?exchange={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info + +## method: tradehistory + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"tradehistory\",\"exchange\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/tradehistory?exchange={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info + +## method: orderbook + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"orderbook\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"depth\":\"{int}\",\"allfields\":\"{int}\",\"ignore\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/orderbook?exchange={string}&base={string}&rel={string}&depth={int}&allfields={int}&ignore={int} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +depth | int | no help info +allfields | int | no help info +ignore | int | no help info + +## method: pollgap + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"pollgap\",\"exchange\":\"{string}\",\"pollgap\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/pollgap?exchange={string}&pollgap={int} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +pollgap | int | no help info + +## method: allexchanges + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"allexchanges\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/allexchanges +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: allpairs + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"allpairs\",\"exchange\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/allpairs?exchange={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info + +## method: supports + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"supports\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/InstantDEX/supports?exchange={string}&base={string}&rel={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info + +tradebot API +=== +need to create help/tradebot.md file + +## method: liquidity + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"liquidity\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"targetcoin\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/liquidity?hash={hash}&vals={array}&targetcoin={str} +``` + +field | value type | Description +--------- | ------- | ----------- +hash | hash | no help info +vals | array | no help info +targetcoin | str | no help info + +## method: amlp + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"amlp\",\"blocktrail\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/amlp?blocktrail={string} +``` + +field | value type | Description +--------- | ------- | ----------- +blocktrail | string | no help info + +## method: notlp + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"notlp\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/notlp +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: gensvm + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"gensvm\",\"base\":\"{string}\",\"rel\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/gensvm?base={string}&rel={string} +``` + +field | value type | Description +--------- | ------- | ----------- +base | string | no help info +rel | string | no help info + +## method: openliquidity + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"openliquidity\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/openliquidity +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: aveprice + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"aveprice\",\"comment\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"basevolume\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/aveprice?comment={string}&base={string}&rel={string}&basevolume={float} +``` + +field | value type | Description +--------- | ------- | ----------- +comment | string | no help info +base | string | no help info +rel | string | no help info +basevolume | float | no help info + +## method: monitor + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"monitor\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"commission\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/monitor?exchange={string}&base={string}&rel={string}&commission={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +commission | float | no help info + +## method: monitorall + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"monitorall\",\"exchange\":\"{string}\",\"commission\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/monitorall?exchange={string}&commission={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +commission | float | no help info + +## method: unmonitor + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"unmonitor\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/unmonitor?exchange={string}&base={string}&rel={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info + +## method: accumulate + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"accumulate\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"duration\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/accumulate?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&duration={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +price | float | no help info +volume | float | no help info +duration | float | no help info + +## method: divest + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"divest\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"duration\":\"{float}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/divest?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&duration={float} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +base | string | no help info +rel | string | no help info +price | float | no help info +volume | float | no help info +duration | float | no help info + +## method: activebots + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"activebots\",\"exchange\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/activebots?exchange={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info + +## method: status + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"status\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/status?exchange={string}&botid={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +botid | string | no help info + +## method: pause + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"pause\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/pause?exchange={string}&botid={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +botid | string | no help info + +## method: stop + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"stop\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/stop?exchange={string}&botid={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +botid | string | no help info + +## method: resume + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"resume\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/resume?exchange={string}&botid={string} +``` + +field | value type | Description +--------- | ------- | ----------- +exchange | string | no help info +botid | string | no help info + +## method: allbalances + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"allbalances\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/allbalances +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: anchor + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"anchor\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/anchor +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: portfolio + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"portfolio\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/portfolio +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: goals + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"goals\",\"currencies\":\"{array}\",\"vals\":\"{object}\",\"targettime\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/tradebot/goals?currencies={array}&vals={object}&targettime={int} +``` + +field | value type | Description +--------- | ------- | ----------- +currencies | array | no help info +vals | object | no help info +targettime | int | no help info + +SuperNET API +=== +need to create help/SuperNET.md file + +## method: help + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"help\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/help +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: utime2utc + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"utime2utc\",\"utime\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/utime2utc?utime={string} +``` + +field | value type | Description +--------- | ------- | ----------- +utime | string | no help info + +## method: utc2utime + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"utc2utime\",\"utc\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/utc2utime?utc={int} +``` + +field | value type | Description +--------- | ------- | ----------- +utc | int | no help info + +## method: getpeers + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"getpeers\",\"activecoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/getpeers?activecoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +activecoin | string | no help info + +## method: mypeers + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"mypeers\",\"supernet\":\"{array}\",\"rawpeers\":\"{array}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/mypeers?supernet={array}&rawpeers={array} +``` + +field | value type | Description +--------- | ------- | ----------- +supernet | array | no help info +rawpeers | array | no help info + +## method: stop + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"stop\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/stop +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: saveconf + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"saveconf\",\"wallethash\":\"{hash}\",\"confjsonstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/saveconf?wallethash={hash}&confjsonstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +wallethash | hash | no help info +confjsonstr | str | no help info + +## method: layer + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"layer\",\"mypriv\":\"{hash}\",\"otherpubs\":\"{array}\",\"str\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/layer?mypriv={hash}&otherpubs={array}&str={str} +``` + +field | value type | Description +--------- | ------- | ----------- +mypriv | hash | no help info +otherpubs | array | no help info +str | str | no help info + +## method: bitcoinrpc + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"bitcoinrpc\",\"setcoin\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/bitcoinrpc?setcoin={string} +``` + +field | value type | Description +--------- | ------- | ----------- +setcoin | string | no help info + +## method: myipaddr + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/myipaddr?ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +ipaddr | string | no help info + +## method: setmyipaddr + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"setmyipaddr\",\"ipaddr\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/setmyipaddr?ipaddr={string} +``` + +field | value type | Description +--------- | ------- | ----------- +ipaddr | string | no help info + +## method: login + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"login\",\"handle\":\"{string}\",\"password\":\"{string}\",\"permanentfile\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/login?handle={string}&password={string}&permanentfile={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +handle | string | no help info +password | string | no help info +permanentfile | string | no help info +passphrase | string | no help info + +## method: logout + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"logout\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/logout +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: activehandle + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"activehandle\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/activehandle +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: encryptjson + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"encryptjson\",\"password\":\"{string}\",\"permanentfile\":\"{string}\",\"payload\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/encryptjson?password={string}&permanentfile={string}&payload={string} +``` + +field | value type | Description +--------- | ------- | ----------- +password | string | no help info +permanentfile | string | no help info +payload | string | no help info + +## method: decryptjson + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"decryptjson\",\"password\":\"{string}\",\"permanentfile\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/decryptjson?password={string}&permanentfile={string} +``` + +field | value type | Description +--------- | ------- | ----------- +password | string | no help info +permanentfile | string | no help info + +## method: html + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"html\",\"agentform\":\"{string}\",\"htmlfile\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/html?agentform={string}&htmlfile={string} +``` + +field | value type | Description +--------- | ------- | ----------- +agentform | string | no help info +htmlfile | string | no help info + +## method: rosetta + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"rosetta\",\"passphrase\":\"{string}\",\"pin\":\"{string}\",\"showprivkey\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/rosetta?passphrase={string}&pin={string}&showprivkey={string} +``` + +field | value type | Description +--------- | ------- | ----------- +passphrase | string | no help info +pin | string | no help info +showprivkey | string | no help info + +## method: keypair + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"keypair\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/keypair +``` + +field | value type | Description +--------- | ------- | ----------- + +## method: priv2pub + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"priv2pub\",\"privkey\":\"{hash}\",\"addrtype\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/priv2pub?privkey={hash}&addrtype={int} +``` + +field | value type | Description +--------- | ------- | ----------- +privkey | hash | no help info +addrtype | int | no help info + +## method: wif2priv + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"wif2priv\",\"wif\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/wif2priv?wif={string} +``` + +field | value type | Description +--------- | ------- | ----------- +wif | string | no help info + +## method: priv2wif + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"priv2wif\",\"priv\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/priv2wif?priv={string} +``` + +field | value type | Description +--------- | ------- | ----------- +priv | string | no help info + +## method: addr2rmd160 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"addr2rmd160\",\"address\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/addr2rmd160?address={string} +``` + +field | value type | Description +--------- | ------- | ----------- +address | string | no help info + +## method: rmd160conv + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"rmd160conv\",\"rmd160\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/rmd160conv?rmd160={string} +``` + +field | value type | Description +--------- | ------- | ----------- +rmd160 | string | no help info + +## method: cipher + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"cipher\",\"privkey\":\"{hash}\",\"destpubkey\":\"{hash}\",\"message\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/cipher?privkey={hash}&destpubkey={hash}&message={str} +``` + +field | value type | Description +--------- | ------- | ----------- +privkey | hash | no help info +destpubkey | hash | no help info +message | str | no help info + +## method: decipher + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"decipher\",\"privkey\":\"{hash}\",\"srcpubkey\":\"{hash}\",\"cipherstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/decipher?privkey={hash}&srcpubkey={hash}&cipherstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +privkey | hash | no help info +srcpubkey | hash | no help info +cipherstr | str | no help info + +## method: broadcastcipher + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"broadcastcipher\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/broadcastcipher?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: broadcastdecipher + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"broadcastdecipher\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/broadcastdecipher?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: multicastcipher + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"multicastcipher\",\"pubkey\":\"{hash}\",\"message\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/multicastcipher?pubkey={hash}&message={str} +``` + +field | value type | Description +--------- | ------- | ----------- +pubkey | hash | no help info +message | str | no help info + +## method: multicastdecipher + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"multicastdecipher\",\"privkey\":\"{hash}\",\"cipherstr\":\"{str}\"}" +``` + +```url +http://127.0.0.1:7778/api/SuperNET/multicastdecipher?privkey={hash}&cipherstr={str} +``` + +field | value type | Description +--------- | ------- | ----------- +privkey | hash | no help info +cipherstr | str | no help info + +mouse API +=== +need to create help/mouse.md file + +## method: image + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"image\",\"name\":\"{string}\",\"x\":\"{int}\",\"y\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/mouse/image?name={string}&x={int}&y={int} +``` + +field | value type | Description +--------- | ------- | ----------- +name | string | no help info +x | int | no help info +y | int | no help info + +## method: change + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"change\",\"name\":\"{string}\",\"x\":\"{int}\",\"y\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/mouse/change?name={string}&x={int}&y={int} +``` + +field | value type | Description +--------- | ------- | ----------- +name | string | no help info +x | int | no help info +y | int | no help info + +## method: click + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"click\",\"name\":\"{string}\",\"x\":\"{int}\",\"y\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/mouse/click?name={string}&x={int}&y={int} +``` + +field | value type | Description +--------- | ------- | ----------- +name | string | no help info +x | int | no help info +y | int | no help info + +## method: close + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"close\",\"name\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/mouse/close?name={string} +``` + +field | value type | Description +--------- | ------- | ----------- +name | string | no help info + +## method: leave + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"leave\",\"name\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/mouse/leave?name={string} +``` + +field | value type | Description +--------- | ------- | ----------- +name | string | no help info + +keyboard API +=== +need to create help/keyboard.md file + +## method: key + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"keyboard\",\"method\":\"key\",\"name\":\"{string}\",\"c\":\"{int}\"}" +``` + +```url +http://127.0.0.1:7778/api/keyboard/key?name={string}&c={int} +``` + +field | value type | Description +--------- | ------- | ----------- +name | string | no help info +c | int | no help info + +hash API +=== +need to create help/hash.md file + +## method: hex + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"hex\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/hex?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: unhex + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"unhex\",\"hexmsg\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/unhex?hexmsg={string} +``` + +field | value type | Description +--------- | ------- | ----------- +hexmsg | string | no help info + +## method: curve25519_pair + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"curve25519_pair\",\"element\":\"{hash}\",\"scalar\":\"{hash}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/curve25519_pair?element={hash}&scalar={hash} +``` + +field | value type | Description +--------- | ------- | ----------- +element | hash | no help info +scalar | hash | no help info + +## method: NXT + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"NXT\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/NXT?passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +passphrase | string | no help info + +## method: curve25519 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"curve25519\",\"pubkey\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/curve25519?pubkey={string} +``` + +field | value type | Description +--------- | ------- | ----------- +pubkey | string | no help info + +## method: crc32 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"crc32\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/crc32?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: base64_encode + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"base64_encode\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/base64_encode?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: base64_decode + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"base64_decode\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/base64_decode?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: rmd160_sha256 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd160_sha256\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/rmd160_sha256?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: sha256_sha256 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha256_sha256\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/sha256_sha256?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: sha224 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha224\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/sha224?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: sha256 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha256\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/sha256?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: sha384 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha384\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/sha384?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: sha512 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha512\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/sha512?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: rmd128 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd128\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/rmd128?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: rmd160 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd160\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/rmd160?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: rmd256 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd256\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/rmd256?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: rmd320 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd320\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/rmd320?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: sha1 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha1\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/sha1?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: md2 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"md2\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/md2?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: md4 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"md4\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/md4?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: md5 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"md5\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/md5?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: tiger192_3 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"tiger192_3\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/tiger192_3?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +## method: whirlpool + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"whirlpool\",\"message\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hash/whirlpool?message={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info + +hmac API +=== +need to create help/hmac.md file + +## method: sha224 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha224\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/sha224?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: sha256 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha256\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/sha256?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: sha384 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha384\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/sha384?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: sha512 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha512\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/sha512?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: rmd128 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd128\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/rmd128?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: rmd160 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd160\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/rmd160?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: rmd256 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd256\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/rmd256?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: rmd320 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd320\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/rmd320?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: sha1 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha1\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/sha1?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: md2 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"md2\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/md2?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: md4 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"md4\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/md4?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: md5 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"md5\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/md5?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: tiger192_3 + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"tiger192_3\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/tiger192_3?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +## method: whirlpool + +put helpful info here + + +```shell +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"whirlpool\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" +``` + +```url +http://127.0.0.1:7778/api/hmac/whirlpool?message={string}&passphrase={string} +``` + +field | value type | Description +--------- | ------- | ----------- +message | string | no help info +passphrase | string | no help info + +end of help + diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 29fa7195c..a9b88c7b3 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -90,6 +90,14 @@ struct supernet_address struct pending_trade { UT_hash_handle hh; double basevolume,relvolume,dir; char base[32],rel[32]; }; +struct jumblr_item +{ + UT_hash_handle hh; + int64_t amount,fee,txfee; + uint32_t spent; + char opid[65],src[65],dest[65],status; +}; + struct liquidity_info { char base[16],rel[16],exchange[16]; @@ -104,7 +112,7 @@ struct supernet_info struct supernet_address myaddr; bits256 persistent_priv,privkey; uint8_t persistent_pubkey33[33]; - char ipaddr[64],NXTAPIURL[512],secret[4096],password[4096],rpcsymbol[64],handle[1024],permanentfile[1024]; + char ipaddr[64],NXTAPIURL[512],secret[4096],password[4096],rpcsymbol[64],handle[1024],permanentfile[1024],jumblr_passphrase[1024]; char *decryptstr; void (*liquidity_command)(struct supernet_info *myinfo,char *base,bits256 hash,cJSON *vals); double (*liquidity_active)(struct supernet_info *myinfo,double *refpricep,char *exchange,char *base,char *rel,double volume); @@ -112,6 +120,7 @@ struct supernet_info uint32_t expiration,dirty,DEXactive,DEXpoll,totalcoins,nanoinit,lastdexrequestid,dexcrcs[1024]; uint16_t argport,rpcport; struct basilisk_info basilisks; + struct jumblr_item *jumblrs; struct exchange_info *tradingexchanges[SUPERNET_MAXEXCHANGES]; int32_t numexchanges; struct iguana_waccount *wallet; struct iguana_info *allcoins; int32_t allcoins_being_added,allcoins_numvirts; diff --git a/iguana/main.c b/iguana/main.c index 30758a494..7c6b7b98d 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -745,6 +745,20 @@ void iguana_urlinit(struct supernet_info *myinfo,int32_t ismainnet,int32_t usess else strcat(myinfo->NXTAPIURL,"6876/nxt"); } +void jumblr_loop(void *ptr) +{ + struct iguana_info *coin; uint32_t t; struct supernet_info *myinfo = ptr; + while ( 1 ) + { + t = (uint32_t)time(NULL); + if ( (coin= iguana_coinfind("KMD")) != 0 && coin->FULLNODE < 0 && myinfo->jumblr_passphrase[0] != 0 && (t % 1200) < 60 ) + { + jumblr_iteration(myinfo,coin,(t % 3600) / 1200,t % 1200); + } + sleep(20); + } +} + void iguana_launchdaemons(struct supernet_info *myinfo) { int32_t i; char *helperargs,helperstr[512]; @@ -761,6 +775,7 @@ void iguana_launchdaemons(struct supernet_info *myinfo) iguana_launch(0,"rpcloop",iguana_rpcloop,myinfo,IGUANA_PERMTHREAD); // limit to oneprocess printf("launch mainloop\n"); OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)DEX_explorerloop,(void *)myinfo); + OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)jumblr_loop,(void *)myinfo); mainloop(myinfo); } diff --git a/includes/iguana_apideclares.h b/includes/iguana_apideclares.h index 4a6787406..3f952e15a 100755 --- a/includes/iguana_apideclares.h +++ b/includes/iguana_apideclares.h @@ -186,6 +186,9 @@ STRING_AND_INT(iguana,bundlehashes,activecoin,height); STRING_AND_INT(iguana,PoSweights,activecoin,height); STRING_ARG(iguana,stakers,activecoin); +STRING_ARG(jumblr,setpassphrase,passphrase); +ZERO_ARGS(jumblr,status); + ZERO_ARGS(InstantDEX,allcoins); STRING_ARG(InstantDEX,available,source); HASH_ARRAY_STRING(InstantDEX,request,hash,vals,hexstr); diff --git a/includes/iguana_funcs.h b/includes/iguana_funcs.h index 8e048b21f..43f997c75 100755 --- a/includes/iguana_funcs.h +++ b/includes/iguana_funcs.h @@ -614,6 +614,7 @@ uint64_t *iguana_PoS_weights(struct supernet_info *myinfo,struct iguana_info *co int32_t iguana_staker_sort(struct iguana_info *coin,bits256 *hash2p,uint8_t *refrmd160,struct iguana_pkhash *refP,uint64_t *weights,int32_t numweights,bits256 *sortbuf); bits256 mpz_div64(bits256 hash,uint64_t divval); void iguana_walletinitcheck(struct supernet_info *myinfo,struct iguana_info *coin); +void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int32_t selector,int32_t modval); // ------------------------------------------------------[ Preparation ]---- // Initialise a gfshare context for producing shares From 5e86843e6c50d97b765fff903417f6a31446225d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 17:56:00 +0200 Subject: [PATCH 02/20] Test --- iguana/autoAPI.md | 4726 --------------------------------------------- 1 file changed, 4726 deletions(-) delete mode 100644 iguana/autoAPI.md diff --git a/iguana/autoAPI.md b/iguana/autoAPI.md deleted file mode 100644 index 59a5b17f5..000000000 --- a/iguana/autoAPI.md +++ /dev/null @@ -1,4726 +0,0 @@ - - -dpow API -=== -need to create help/dpow.md file - -## method: pending - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"pending\",\"fiat\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/pending?fiat={string} -``` - -field | value type | Description ---------- | ------- | ----------- -fiat | string | no help info - -## method: notarychains - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"notarychains\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/notarychains -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: active - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"active\",\"maskhex\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/active?maskhex={string} -``` - -field | value type | Description ---------- | ------- | ----------- -maskhex | string | no help info - -## method: ratify - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"ratify\",\"minsigs\":\"{int}\",\"timestamp\":\"{int}\",\"ratified\":\"{array}\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/ratify?minsigs={int}×tamp={int}&ratified={array} -``` - -field | value type | Description ---------- | ------- | ----------- -minsigs | int | no help info -timestamp | int | no help info -ratified | array | no help info - -## method: cancelratify - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"cancelratify\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/cancelratify -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: bindaddr - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"bindaddr\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/bindaddr?ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -ipaddr | string | no help info - -## method: fundnotaries - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dpow\",\"method\":\"fundnotaries\",\"symbol\":\"{string}\",\"numblocks\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/dpow/fundnotaries?symbol={string}&numblocks={int} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -numblocks | int | no help info - -pax API -=== -need to create help/pax.md file - -## method: start - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"pax\",\"method\":\"start\"}" -``` - -```url -http://127.0.0.1:7778/api/pax/start -``` - -field | value type | Description ---------- | ------- | ----------- - -passthru API -=== -need to create help/passthru.md file - -## method: paxfiats - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"passthru\",\"method\":\"paxfiats\",\"mask\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/passthru/paxfiats?mask={int} -``` - -field | value type | Description ---------- | ------- | ----------- -mask | int | no help info - -zcash API -=== -need to create help/zcash.md file - -## method: passthru - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"zcash\",\"method\":\"passthru\",\"function\":\"{string}\",\"hex\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/zcash/passthru?function={string}&hex={string} -``` - -field | value type | Description ---------- | ------- | ----------- -function | string | no help info -hex | string | no help info - -komodo API -=== -need to create help/komodo.md file - -## method: passthru - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"komodo\",\"method\":\"passthru\",\"function\":\"{string}\",\"hex\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/komodo/passthru?function={string}&hex={string} -``` - -field | value type | Description ---------- | ------- | ----------- -function | string | no help info -hex | string | no help info - -dex API -=== -need to create help/dex.md file - -## method: kvsearch - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvsearch\",\"symbol\":\"{string}\",\"key\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/kvsearch?symbol={string}&key={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -key | string | no help info - -## method: kvupdate - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvupdate\",\"symbol\":\"{string}\",\"key\":\"{string}\",\"value\":\"{string}\",\"flags\":\"{int}\",\"unused\":\"{int}\",\"unusedb\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/kvupdate?symbol={string}&key={string}&value={string}&flags={int}&unused={int}&unusedb={int} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -key | string | no help info -value | string | no help info -flags | int | no help info -unused | int | no help info -unusedb | int | no help info - -## method: send - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"send\",\"hex\":\"{string}\",\"handler\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/send?hex={string}&handler={string} -``` - -field | value type | Description ---------- | ------- | ----------- -hex | string | no help info -handler | string | no help info - -## method: gettransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"gettransaction\",\"txid\":\"{hash}\",\"symbol\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/gettransaction?txid={hash}&symbol={str} -``` - -field | value type | Description ---------- | ------- | ----------- -txid | hash | no help info -symbol | str | no help info - -## method: getinfo - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getinfo\",\"symbol\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/getinfo?symbol={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info - -## method: getnotaries - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getnotaries\",\"symbol\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/getnotaries?symbol={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info - -## method: alladdresses - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"alladdresses\",\"symbol\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/alladdresses?symbol={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info - -## method: getbestblockhash - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbestblockhash\",\"symbol\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/getbestblockhash?symbol={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info - -## method: getblockhash - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getblockhash\",\"symbol\":\"{string}\",\"height\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/getblockhash?symbol={string}&height={int} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -height | int | no help info - -## method: getblock - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getblock\",\"hash\":\"{hash}\",\"symbol\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/getblock?hash={hash}&symbol={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -symbol | str | no help info - -## method: sendrawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"sendrawtransaction\",\"symbol\":\"{string}\",\"signedtx\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/sendrawtransaction?symbol={string}&signedtx={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -signedtx | string | no help info - -## method: gettxout - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"gettxout\",\"txid\":\"{hash}\",\"symbol\":\"{str}\",\"vout\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/gettxout?txid={hash}&symbol={str}&vout={int} -``` - -field | value type | Description ---------- | ------- | ----------- -txid | hash | no help info -symbol | str | no help info -vout | int | no help info - -## method: importaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/importaddress?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: validateaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"validateaddress\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/validateaddress?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: checkaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"checkaddress\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/checkaddress?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: listunspent - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/listunspent?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: listtransactions - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listtransactions\",\"symbol\":\"{string}\",\"address\":\"{string}\",\"count\":\"{float}\",\"skip\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/listtransactions?symbol={string}&address={string}&count={float}&skip={float} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info -count | float | no help info -skip | float | no help info - -## method: listunspent2 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent2\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/listunspent2?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: listtransactions2 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listtransactions2\",\"symbol\":\"{string}\",\"address\":\"{string}\",\"count\":\"{float}\",\"skip\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/listtransactions2?symbol={string}&address={string}&count={float}&skip={float} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info -count | float | no help info -skip | float | no help info - -## method: gettxin - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"gettxin\",\"txid\":\"{hash}\",\"symbol\":\"{str}\",\"vout\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/gettxin?txid={hash}&symbol={str}&vout={int} -``` - -field | value type | Description ---------- | ------- | ----------- -txid | hash | no help info -symbol | str | no help info -vout | int | no help info - -## method: listspent - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listspent\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/listspent?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: getbalance - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/getbalance?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: explorer - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"explorer\",\"symbol\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/dex/explorer?symbol={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info - -basilisk API -=== -need to create help/basilisk.md file - -## method: genesis_opreturn - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"genesis_opreturn\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/genesis_opreturn?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: history - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"history\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/history?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: paxfiats - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"paxfiats\",\"mask\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/paxfiats?mask={int} -``` - -field | value type | Description ---------- | ------- | ----------- -mask | int | no help info - -## method: balances - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"balances\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/balances?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: value - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"value\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/value?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: rawtx - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"rawtx\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/rawtx?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: refresh - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"refresh\",\"symbol\":\"{string}\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/refresh?symbol={string}&address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -address | string | no help info - -## method: utxorawtx - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"utxorawtx\",\"symbol\":\"{string}\",\"utxos\":\"{array}\",\"vals\":\"{object}\",\"ignore\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/utxorawtx?symbol={string}&utxos={array}&vals={object}&ignore={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -utxos | array | no help info -vals | object | no help info -ignore | string | no help info - -## method: getmessage - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"getmessage\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/getmessage?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: sendmessage - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"sendmessage\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/sendmessage?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: geckoheaders - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckoheaders\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/geckoheaders?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: geckoblock - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckoblock\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/geckoblock?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: geckotx - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckotx\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/geckotx?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: geckoget - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"geckoget\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/geckoget?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: addrelay - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"addrelay\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/addrelay?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: dispatch - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"dispatch\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/dispatch?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: publish - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"publish\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/publish?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: subscribe - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"subscribe\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/subscribe?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: forward - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"forward\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/forward?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: mailbox - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"basilisk\",\"method\":\"mailbox\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/basilisk/mailbox?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -bitcoinrpc API -=== -need to create help/bitcoinrpc.md file - -## method: getinfo - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getinfo\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getinfo -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: getblockcount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getblockcount\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getblockcount -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: getdifficulty - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getdifficulty\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getdifficulty -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: getbestblockhash - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getbestblockhash\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getbestblockhash -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: getblockhash - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getblockhash\",\"height\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getblockhash?height={int} -``` - -field | value type | Description ---------- | ------- | ----------- -height | int | no help info - -## method: getblock - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getblock\",\"blockhash\":\"{hash}\",\"verbose\":\"{int}\",\"remoteonly\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getblock?blockhash={hash}&verbose={int}&remoteonly={int} -``` - -field | value type | Description ---------- | ------- | ----------- -blockhash | hash | no help info -verbose | int | no help info -remoteonly | int | no help info - -## method: getrawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getrawtransaction\",\"txid\":\"{hash}\",\"verbose\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getrawtransaction?txid={hash}&verbose={int} -``` - -field | value type | Description ---------- | ------- | ----------- -txid | hash | no help info -verbose | int | no help info - -## method: gettransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"gettransaction\",\"txid\":\"{hash}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/gettransaction?txid={hash} -``` - -field | value type | Description ---------- | ------- | ----------- -txid | hash | no help info - -## method: gettxout - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"gettxout\",\"txid\":\"{hash}\",\"vout\":\"{int}\",\"mempool\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/gettxout?txid={hash}&vout={int}&mempool={int} -``` - -field | value type | Description ---------- | ------- | ----------- -txid | hash | no help info -vout | int | no help info -mempool | int | no help info - -## method: listunspent - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listunspent\",\"minconf\":\"{int}\",\"maxconf\":\"{int}\",\"array\":\"{array}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listunspent?minconf={int}&maxconf={int}&array={array} -``` - -field | value type | Description ---------- | ------- | ----------- -minconf | int | no help info -maxconf | int | no help info -array | array | no help info - -## method: decodescript - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"decodescript\",\"scriptstr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/decodescript?scriptstr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -scriptstr | string | no help info - -## method: decoderawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"decoderawtransaction\",\"rawtx\":\"{string}\",\"suppress\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/decoderawtransaction?rawtx={string}&suppress={int} -``` - -field | value type | Description ---------- | ------- | ----------- -rawtx | string | no help info -suppress | int | no help info - -## method: validaterawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"validaterawtransaction\",\"rawtx\":\"{string}\",\"suppress\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/validaterawtransaction?rawtx={string}&suppress={int} -``` - -field | value type | Description ---------- | ------- | ----------- -rawtx | string | no help info -suppress | int | no help info - -## method: createrawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"createrawtransaction\",\"vins\":\"{array}\",\"vouts\":\"{object}\",\"locktime\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/createrawtransaction?vins={array}&vouts={object}&locktime={int} -``` - -field | value type | Description ---------- | ------- | ----------- -vins | array | no help info -vouts | object | no help info -locktime | int | no help info - -## method: validatepubkey - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"validatepubkey\",\"pubkey\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/validatepubkey?pubkey={string} -``` - -field | value type | Description ---------- | ------- | ----------- -pubkey | string | no help info - -## method: validateaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"validateaddress\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/validateaddress?address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info - -## method: walletlock - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletlock\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/walletlock -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: walletpassphrase - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletpassphrase\",\"password\":\"{string}\",\"permanentfile\":\"{string}\",\"timeout\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/walletpassphrase?password={string}&permanentfile={string}&timeout={int} -``` - -field | value type | Description ---------- | ------- | ----------- -password | string | no help info -permanentfile | string | no help info -timeout | int | no help info - -## method: encryptwallet - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"encryptwallet\",\"passphrase\":\"{string}\",\"password\":\"{string}\",\"permanentfile\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/encryptwallet?passphrase={string}&password={string}&permanentfile={string} -``` - -field | value type | Description ---------- | ------- | ----------- -passphrase | string | no help info -password | string | no help info -permanentfile | string | no help info - -## method: walletpassphrasechange - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletpassphrasechange\",\"oldpassword\":\"{string}\",\"newpassword\":\"{string}\",\"oldpermanentfile\":\"{string}\",\"permanentfile\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/walletpassphrasechange?oldpassword={string}&newpassword={string}&oldpermanentfile={string}&permanentfile={string} -``` - -field | value type | Description ---------- | ------- | ----------- -oldpassword | string | no help info -newpassword | string | no help info -oldpermanentfile | string | no help info -permanentfile | string | no help info - -## method: dumpwallet - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"dumpwallet\",\"filename\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/dumpwallet?filename={string} -``` - -field | value type | Description ---------- | ------- | ----------- -filename | string | no help info - -## method: backupwallet - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"backupwallet\",\"filename\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/backupwallet?filename={string} -``` - -field | value type | Description ---------- | ------- | ----------- -filename | string | no help info - -## method: importwallet - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"importwallet\",\"filename\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/importwallet?filename={string} -``` - -field | value type | Description ---------- | ------- | ----------- -filename | string | no help info - -## method: getnewaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getnewaddress\",\"account\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getnewaddress?account={string} -``` - -field | value type | Description ---------- | ------- | ----------- -account | string | no help info - -## method: importprivkey - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"importprivkey\",\"wif\":\"{string}\",\"account\":\"{string}\",\"rescan\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/importprivkey?wif={string}&account={string}&rescan={int} -``` - -field | value type | Description ---------- | ------- | ----------- -wif | string | no help info -account | string | no help info -rescan | int | no help info - -## method: importaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"importaddress\",\"address\":\"{string}\",\"account\":\"{string}\",\"rescan\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/importaddress?address={string}&account={string}&rescan={int} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info -account | string | no help info -rescan | int | no help info - -## method: dumpprivkey - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"dumpprivkey\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/dumpprivkey?address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info - -## method: listtransactions - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listtransactions\",\"account\":\"{string}\",\"count\":\"{int}\",\"skip\":\"{int}\",\"includewatchonly\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listtransactions?account={string}&count={int}&skip={int}&includewatchonly={int} -``` - -field | value type | Description ---------- | ------- | ----------- -account | string | no help info -count | int | no help info -skip | int | no help info -includewatchonly | int | no help info - -## method: listreceivedbyaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listreceivedbyaddress\",\"minconf\":\"{int}\",\"includeempty\":\"{int}\",\"flag\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listreceivedbyaddress?minconf={int}&includeempty={int}&flag={int} -``` - -field | value type | Description ---------- | ------- | ----------- -minconf | int | no help info -includeempty | int | no help info -flag | int | no help info - -## method: listreceivedbyaccount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listreceivedbyaccount\",\"confirmations\":\"{int}\",\"includeempty\":\"{int}\",\"watchonly\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listreceivedbyaccount?confirmations={int}&includeempty={int}&watchonly={int} -``` - -field | value type | Description ---------- | ------- | ----------- -confirmations | int | no help info -includeempty | int | no help info -watchonly | int | no help info - -## method: listaccounts - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listaccounts\",\"minconf\":\"{int}\",\"includewatchonly\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listaccounts?minconf={int}&includewatchonly={int} -``` - -field | value type | Description ---------- | ------- | ----------- -minconf | int | no help info -includewatchonly | int | no help info - -## method: listaddressgroupings - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listaddressgroupings\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listaddressgroupings -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: getreceivedbyaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getreceivedbyaddress\",\"address\":\"{string}\",\"minconf\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getreceivedbyaddress?address={string}&minconf={int} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info -minconf | int | no help info - -## method: getreceivedbyaccount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getreceivedbyaccount\",\"account\":\"{string}\",\"includeempty\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getreceivedbyaccount?account={string}&includeempty={int} -``` - -field | value type | Description ---------- | ------- | ----------- -account | string | no help info -includeempty | int | no help info - -## method: getbalance - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getbalance\",\"account\":\"{string}\",\"confirmations\":\"{int}\",\"includeempty\":\"{int}\",\"lastheight\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getbalance?account={string}&confirmations={int}&includeempty={int}&lastheight={int} -``` - -field | value type | Description ---------- | ------- | ----------- -account | string | no help info -confirmations | int | no help info -includeempty | int | no help info -lastheight | int | no help info - -## method: getaddressesbyaccount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getaddressesbyaccount\",\"account\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getaddressesbyaccount?account={string} -``` - -field | value type | Description ---------- | ------- | ----------- -account | string | no help info - -## method: getaccount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getaccount\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getaccount?address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info - -## method: getaccountaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getaccountaddress\",\"account\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getaccountaddress?account={string} -``` - -field | value type | Description ---------- | ------- | ----------- -account | string | no help info - -## method: setaccount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"setaccount\",\"address\":\"{string}\",\"account\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/setaccount?address={string}&account={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info -account | string | no help info - -## method: createmultisig - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"createmultisig\",\"M\":\"{int}\",\"pubkeys\":\"{array}\",\"ignore\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/createmultisig?M={int}&pubkeys={array}&ignore={string} -``` - -field | value type | Description ---------- | ------- | ----------- -M | int | no help info -pubkeys | array | no help info -ignore | string | no help info - -## method: addmultisigaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"addmultisigaddress\",\"M\":\"{int}\",\"pubkeys\":\"{array}\",\"account\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/addmultisigaddress?M={int}&pubkeys={array}&account={string} -``` - -field | value type | Description ---------- | ------- | ----------- -M | int | no help info -pubkeys | array | no help info -account | string | no help info - -## method: settxfee - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"settxfee\",\"amount\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/settxfee?amount={float} -``` - -field | value type | Description ---------- | ------- | ----------- -amount | float | no help info - -## method: checkwallet - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"checkwallet\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/checkwallet -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: repairwallet - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"repairwallet\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/repairwallet -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: signrawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"signrawtransaction\",\"rawtx\":\"{string}\",\"vins\":\"{array}\",\"privkeys\":\"{object}\",\"sighash\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/signrawtransaction?rawtx={string}&vins={array}&privkeys={object}&sighash={string} -``` - -field | value type | Description ---------- | ------- | ----------- -rawtx | string | no help info -vins | array | no help info -privkeys | object | no help info -sighash | string | no help info - -## method: signmessage - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"signmessage\",\"address\":\"{string}\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/signmessage?address={string}&message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info -message | string | no help info - -## method: verifymessage - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"verifymessage\",\"address\":\"{string}\",\"sig\":\"{string}\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/verifymessage?address={string}&sig={string}&message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info -sig | string | no help info -message | string | no help info - -## method: sendrawtransaction - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendrawtransaction\",\"rawtx\":\"{string}\",\"allowhighfees\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/sendrawtransaction?rawtx={string}&allowhighfees={int} -``` - -field | value type | Description ---------- | ------- | ----------- -rawtx | string | no help info -allowhighfees | int | no help info - -## method: sendfrom - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendfrom\",\"fromaccount\":\"{string}\",\"toaddress\":\"{string}\",\"amount\":\"{float}\",\"minconf\":\"{int}\",\"comment\":\"{string}\",\"comment2\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/sendfrom?fromaccount={string}&toaddress={string}&amount={float}&minconf={int}&comment={string}&comment2={string} -``` - -field | value type | Description ---------- | ------- | ----------- -fromaccount | string | no help info -toaddress | string | no help info -amount | float | no help info -minconf | int | no help info -comment | string | no help info -comment2 | string | no help info - -## method: sendmany - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendmany\",\"fromaccount\":\"{string}\",\"payments\":\"{array}\",\"minconf\":\"{int}\",\"comment\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/sendmany?fromaccount={string}&payments={array}&minconf={int}&comment={string} -``` - -field | value type | Description ---------- | ------- | ----------- -fromaccount | string | no help info -payments | array | no help info -minconf | int | no help info -comment | string | no help info - -## method: sendtoaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"sendtoaddress\",\"address\":\"{string}\",\"amount\":\"{float}\",\"comment\":\"{string}\",\"comment2\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/sendtoaddress?address={string}&amount={float}&comment={string}&comment2={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info -amount | float | no help info -comment | string | no help info -comment2 | string | no help info - -## method: lockunspent - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"lockunspent\",\"flag\":\"{int}\",\"array\":\"{array}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/lockunspent?flag={int}&array={array} -``` - -field | value type | Description ---------- | ------- | ----------- -flag | int | no help info -array | array | no help info - -## method: listlockunspent - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listlockunspent\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listlockunspent -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: submitblock - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"submitblock\",\"rawbytes\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/submitblock?rawbytes={string} -``` - -field | value type | Description ---------- | ------- | ----------- -rawbytes | string | no help info - -## method: listsinceblock - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"listsinceblock\",\"blockhash\":\"{hash}\",\"target\":\"{int}\",\"flag\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/listsinceblock?blockhash={hash}&target={int}&flag={int} -``` - -field | value type | Description ---------- | ------- | ----------- -blockhash | hash | no help info -target | int | no help info -flag | int | no help info - -## method: gettxoutsetinfo - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"gettxoutsetinfo\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/gettxoutsetinfo -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: getrawchangeaddress - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"getrawchangeaddress\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/getrawchangeaddress -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: move - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"move\",\"fromaccount\":\"{string}\",\"toaccount\":\"{string}\",\"amount\":\"{float}\",\"minconf\":\"{int}\",\"comment\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/bitcoinrpc/move?fromaccount={string}&toaccount={string}&amount={float}&minconf={int}&comment={string} -``` - -field | value type | Description ---------- | ------- | ----------- -fromaccount | string | no help info -toaccount | string | no help info -amount | float | no help info -minconf | int | no help info -comment | string | no help info - -iguana API -=== -need to create help/iguana.md file - -## method: splitfunds - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"splitfunds\",\"satoshis\":\"{int}\",\"duplicates\":\"{int}\",\"sendflag\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/splitfunds?satoshis={int}&duplicates={int}&sendflag={int} -``` - -field | value type | Description ---------- | ------- | ----------- -satoshis | int | no help info -duplicates | int | no help info -sendflag | int | no help info - -## method: makekeypair - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"makekeypair\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/makekeypair -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: rates - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"rates\",\"unused\":\"{int}\",\"quotes\":\"{array}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/rates?unused={int}"es={array} -``` - -field | value type | Description ---------- | ------- | ----------- -unused | int | no help info -quotes | array | no help info - -## method: rate - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"rate\",\"base\":\"{string}\",\"rel\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/rate?base={string}&rel={string} -``` - -field | value type | Description ---------- | ------- | ----------- -base | string | no help info -rel | string | no help info - -## method: prices - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"prices\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"period\":\"{int}\",\"start\":\"{int}\",\"end\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/prices?exchange={string}&base={string}&rel={string}&period={int}&start={int}&end={int} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -period | int | no help info -start | int | no help info -end | int | no help info - -## method: snapshot - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"snapshot\",\"symbol\":\"{string}\",\"height\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/snapshot?symbol={string}&height={int} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -height | int | no help info - -## method: dividends - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"dividends\",\"height\":\"{int}\",\"vals\":\"{array}\",\"symbol\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/dividends?height={int}&vals={array}&symbol={string} -``` - -field | value type | Description ---------- | ------- | ----------- -height | int | no help info -vals | array | no help info -symbol | string | no help info - -## method: passthru - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"passthru\",\"asset\":\"{string}\",\"function\":\"{string}\",\"hex\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/passthru?asset={string}&function={string}&hex={string} -``` - -field | value type | Description ---------- | ------- | ----------- -asset | string | no help info -function | string | no help info -hex | string | no help info - -## method: initfastfind - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"initfastfind\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/initfastfind?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: dpow - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"dpow\",\"symbol\":\"{string}\",\"pubkey\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/dpow?symbol={string}&pubkey={string} -``` - -field | value type | Description ---------- | ------- | ----------- -symbol | string | no help info -pubkey | string | no help info - -## method: peers - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"peers\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/peers?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: maxpeers - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"maxpeers\",\"activecoin\":\"{string}\",\"max\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/maxpeers?activecoin={string}&max={int} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -max | int | no help info - -## method: getconnectioncount - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"getconnectioncount\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/getconnectioncount?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: addcoin - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/addcoin?newcoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -newcoin | string | no help info - -## method: validate - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"validate\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/validate?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: removecoin - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"removecoin\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/removecoin?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: startcoin - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"startcoin\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/startcoin?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: pausecoin - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"pausecoin\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/pausecoin?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: stopcoin - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"stopcoin\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/stopcoin?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: addnode - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnode\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/addnode?activecoin={string}&ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -ipaddr | string | no help info - -## method: addnotary - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/addnotary?ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -ipaddr | string | no help info - -## method: persistent - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"persistent\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/persistent?activecoin={string}&ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -ipaddr | string | no help info - -## method: removenode - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"removenode\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/removenode?activecoin={string}&ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -ipaddr | string | no help info - -## method: oneshot - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"oneshot\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/oneshot?activecoin={string}&ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -ipaddr | string | no help info - -## method: nodestatus - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"nodestatus\",\"activecoin\":\"{string}\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/nodestatus?activecoin={string}&ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -ipaddr | string | no help info - -## method: balance - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"balance\",\"activecoin\":\"{string}\",\"address\":\"{string}\",\"heightd\":\"{float}\",\"minconfd\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/balance?activecoin={string}&address={string}&heightd={float}&minconfd={float} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -address | string | no help info -heightd | float | no help info -minconfd | float | no help info - -## method: spendmsig - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"spendmsig\",\"activecoin\":\"{string}\",\"vintxid\":\"{hash}\",\"vinvout\":\"{int}\",\"destaddress\":\"{string}\",\"destamount\":\"{float}\",\"destaddress2\":\"{string}\",\"destamount2\":\"{float}\",\"M\":\"{int}\",\"N\":\"{int}\",\"pubA\":\"{string}\",\"wifA\":\"{string}\",\"pubB\":\"{string}\",\"wifB\":\"{string}\",\"pubC\":\"{string}\",\"wifC\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/spendmsig?activecoin={string}&vintxid={hash}&vinvout={int}&destaddress={string}&destamount={float}&destaddress2={string}&destamount2={float}&M={int}&N={int}&pubA={string}&wifA={string}&pubB={string}&wifB={string}&pubC={string}&wifC={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -vintxid | hash | no help info -vinvout | int | no help info -destaddress | string | no help info -destamount | float | no help info -destaddress2 | string | no help info -destamount2 | float | no help info -M | int | no help info -N | int | no help info -pubA | string | no help info -wifA | string | no help info -pubB | string | no help info -wifB | string | no help info -pubC | string | no help info -wifC | string | no help info - -## method: bundleaddresses - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"bundleaddresses\",\"activecoin\":\"{string}\",\"height\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/bundleaddresses?activecoin={string}&height={int} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -height | int | no help info - -## method: bundlehashes - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"bundlehashes\",\"activecoin\":\"{string}\",\"height\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/bundlehashes?activecoin={string}&height={int} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -height | int | no help info - -## method: PoSweights - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"PoSweights\",\"activecoin\":\"{string}\",\"height\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/PoSweights?activecoin={string}&height={int} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info -height | int | no help info - -## method: stakers - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"stakers\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/iguana/stakers?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -jumblr API -=== -need to create help/jumblr.md file - -## method: setpassphrase - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"jumblr\",\"method\":\"setpassphrase\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/jumblr/setpassphrase?passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -passphrase | string | no help info - -InstantDEX API -=== -need to create help/InstantDEX.md file - -## method: allcoins - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"allcoins\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/allcoins -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: available - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"available\",\"source\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/available?source={string} -``` - -field | value type | Description ---------- | ------- | ----------- -source | string | no help info - -## method: request - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"request\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"hexstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/request?hash={hash}&vals={array}&hexstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -hexstr | str | no help info - -## method: incoming - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"incoming\",\"requestid\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/incoming?requestid={int} -``` - -field | value type | Description ---------- | ------- | ----------- -requestid | int | no help info - -## method: automatched - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"automatched\",\"requestid\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/automatched?requestid={int} -``` - -field | value type | Description ---------- | ------- | ----------- -requestid | int | no help info - -## method: accept - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"accept\",\"requestid\":\"{int}\",\"quoteid\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/accept?requestid={int}"eid={int} -``` - -field | value type | Description ---------- | ------- | ----------- -requestid | int | no help info -quoteid | int | no help info - -## method: buy - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"buy\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"dotrade\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/buy?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&dotrade={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -price | float | no help info -volume | float | no help info -dotrade | float | no help info - -## method: sell - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"sell\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"dotrade\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/sell?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&dotrade={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -price | float | no help info -volume | float | no help info -dotrade | float | no help info - -## method: withdraw - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"withdraw\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"destaddr\":\"{string}\",\"amount\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/withdraw?exchange={string}&base={string}&destaddr={string}&amount={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -destaddr | string | no help info -amount | float | no help info - -## method: apikeypair - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"apikeypair\",\"exchange\":\"{string}\",\"apikey\":\"{string}\",\"apisecret\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/apikeypair?exchange={string}&apikey={string}&apisecret={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -apikey | string | no help info -apisecret | string | no help info - -## method: setuserid - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"setuserid\",\"exchange\":\"{string}\",\"userid\":\"{string}\",\"tradepassword\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/setuserid?exchange={string}&userid={string}&tradepassword={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -userid | string | no help info -tradepassword | string | no help info - -## method: balance - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"balance\",\"exchange\":\"{string}\",\"base\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/balance?exchange={string}&base={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info - -## method: orderstatus - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"orderstatus\",\"exchange\":\"{string}\",\"orderid\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/orderstatus?exchange={string}&orderid={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -orderid | string | no help info - -## method: cancelorder - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"cancelorder\",\"exchange\":\"{string}\",\"orderid\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/cancelorder?exchange={string}&orderid={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -orderid | string | no help info - -## method: openorders - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"openorders\",\"exchange\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/openorders?exchange={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info - -## method: tradehistory - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"tradehistory\",\"exchange\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/tradehistory?exchange={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info - -## method: orderbook - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"orderbook\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"depth\":\"{int}\",\"allfields\":\"{int}\",\"ignore\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/orderbook?exchange={string}&base={string}&rel={string}&depth={int}&allfields={int}&ignore={int} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -depth | int | no help info -allfields | int | no help info -ignore | int | no help info - -## method: pollgap - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"pollgap\",\"exchange\":\"{string}\",\"pollgap\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/pollgap?exchange={string}&pollgap={int} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -pollgap | int | no help info - -## method: allexchanges - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"allexchanges\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/allexchanges -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: allpairs - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"allpairs\",\"exchange\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/allpairs?exchange={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info - -## method: supports - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"supports\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/InstantDEX/supports?exchange={string}&base={string}&rel={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info - -tradebot API -=== -need to create help/tradebot.md file - -## method: liquidity - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"liquidity\",\"hash\":\"{hash}\",\"vals\":\"{array}\",\"targetcoin\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/liquidity?hash={hash}&vals={array}&targetcoin={str} -``` - -field | value type | Description ---------- | ------- | ----------- -hash | hash | no help info -vals | array | no help info -targetcoin | str | no help info - -## method: amlp - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"amlp\",\"blocktrail\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/amlp?blocktrail={string} -``` - -field | value type | Description ---------- | ------- | ----------- -blocktrail | string | no help info - -## method: notlp - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"notlp\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/notlp -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: gensvm - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"gensvm\",\"base\":\"{string}\",\"rel\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/gensvm?base={string}&rel={string} -``` - -field | value type | Description ---------- | ------- | ----------- -base | string | no help info -rel | string | no help info - -## method: openliquidity - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"openliquidity\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/openliquidity -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: aveprice - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"aveprice\",\"comment\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"basevolume\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/aveprice?comment={string}&base={string}&rel={string}&basevolume={float} -``` - -field | value type | Description ---------- | ------- | ----------- -comment | string | no help info -base | string | no help info -rel | string | no help info -basevolume | float | no help info - -## method: monitor - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"monitor\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"commission\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/monitor?exchange={string}&base={string}&rel={string}&commission={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -commission | float | no help info - -## method: monitorall - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"monitorall\",\"exchange\":\"{string}\",\"commission\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/monitorall?exchange={string}&commission={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -commission | float | no help info - -## method: unmonitor - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"unmonitor\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/unmonitor?exchange={string}&base={string}&rel={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info - -## method: accumulate - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"accumulate\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"duration\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/accumulate?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&duration={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -price | float | no help info -volume | float | no help info -duration | float | no help info - -## method: divest - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"divest\",\"exchange\":\"{string}\",\"base\":\"{string}\",\"rel\":\"{string}\",\"price\":\"{float}\",\"volume\":\"{float}\",\"duration\":\"{float}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/divest?exchange={string}&base={string}&rel={string}&price={float}&volume={float}&duration={float} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -base | string | no help info -rel | string | no help info -price | float | no help info -volume | float | no help info -duration | float | no help info - -## method: activebots - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"activebots\",\"exchange\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/activebots?exchange={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info - -## method: status - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"status\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/status?exchange={string}&botid={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -botid | string | no help info - -## method: pause - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"pause\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/pause?exchange={string}&botid={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -botid | string | no help info - -## method: stop - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"stop\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/stop?exchange={string}&botid={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -botid | string | no help info - -## method: resume - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"resume\",\"exchange\":\"{string}\",\"botid\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/resume?exchange={string}&botid={string} -``` - -field | value type | Description ---------- | ------- | ----------- -exchange | string | no help info -botid | string | no help info - -## method: allbalances - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"allbalances\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/allbalances -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: anchor - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"anchor\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/anchor -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: portfolio - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"portfolio\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/portfolio -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: goals - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"goals\",\"currencies\":\"{array}\",\"vals\":\"{object}\",\"targettime\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/tradebot/goals?currencies={array}&vals={object}&targettime={int} -``` - -field | value type | Description ---------- | ------- | ----------- -currencies | array | no help info -vals | object | no help info -targettime | int | no help info - -SuperNET API -=== -need to create help/SuperNET.md file - -## method: help - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"help\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/help -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: utime2utc - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"utime2utc\",\"utime\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/utime2utc?utime={string} -``` - -field | value type | Description ---------- | ------- | ----------- -utime | string | no help info - -## method: utc2utime - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"utc2utime\",\"utc\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/utc2utime?utc={int} -``` - -field | value type | Description ---------- | ------- | ----------- -utc | int | no help info - -## method: getpeers - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"getpeers\",\"activecoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/getpeers?activecoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -activecoin | string | no help info - -## method: mypeers - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"mypeers\",\"supernet\":\"{array}\",\"rawpeers\":\"{array}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/mypeers?supernet={array}&rawpeers={array} -``` - -field | value type | Description ---------- | ------- | ----------- -supernet | array | no help info -rawpeers | array | no help info - -## method: stop - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"stop\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/stop -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: saveconf - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"saveconf\",\"wallethash\":\"{hash}\",\"confjsonstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/saveconf?wallethash={hash}&confjsonstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -wallethash | hash | no help info -confjsonstr | str | no help info - -## method: layer - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"layer\",\"mypriv\":\"{hash}\",\"otherpubs\":\"{array}\",\"str\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/layer?mypriv={hash}&otherpubs={array}&str={str} -``` - -field | value type | Description ---------- | ------- | ----------- -mypriv | hash | no help info -otherpubs | array | no help info -str | str | no help info - -## method: bitcoinrpc - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"bitcoinrpc\",\"setcoin\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/bitcoinrpc?setcoin={string} -``` - -field | value type | Description ---------- | ------- | ----------- -setcoin | string | no help info - -## method: myipaddr - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/myipaddr?ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -ipaddr | string | no help info - -## method: setmyipaddr - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"setmyipaddr\",\"ipaddr\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/setmyipaddr?ipaddr={string} -``` - -field | value type | Description ---------- | ------- | ----------- -ipaddr | string | no help info - -## method: login - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"login\",\"handle\":\"{string}\",\"password\":\"{string}\",\"permanentfile\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/login?handle={string}&password={string}&permanentfile={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -handle | string | no help info -password | string | no help info -permanentfile | string | no help info -passphrase | string | no help info - -## method: logout - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"logout\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/logout -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: activehandle - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"activehandle\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/activehandle -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: encryptjson - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"encryptjson\",\"password\":\"{string}\",\"permanentfile\":\"{string}\",\"payload\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/encryptjson?password={string}&permanentfile={string}&payload={string} -``` - -field | value type | Description ---------- | ------- | ----------- -password | string | no help info -permanentfile | string | no help info -payload | string | no help info - -## method: decryptjson - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"decryptjson\",\"password\":\"{string}\",\"permanentfile\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/decryptjson?password={string}&permanentfile={string} -``` - -field | value type | Description ---------- | ------- | ----------- -password | string | no help info -permanentfile | string | no help info - -## method: html - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"html\",\"agentform\":\"{string}\",\"htmlfile\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/html?agentform={string}&htmlfile={string} -``` - -field | value type | Description ---------- | ------- | ----------- -agentform | string | no help info -htmlfile | string | no help info - -## method: rosetta - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"rosetta\",\"passphrase\":\"{string}\",\"pin\":\"{string}\",\"showprivkey\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/rosetta?passphrase={string}&pin={string}&showprivkey={string} -``` - -field | value type | Description ---------- | ------- | ----------- -passphrase | string | no help info -pin | string | no help info -showprivkey | string | no help info - -## method: keypair - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"keypair\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/keypair -``` - -field | value type | Description ---------- | ------- | ----------- - -## method: priv2pub - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"priv2pub\",\"privkey\":\"{hash}\",\"addrtype\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/priv2pub?privkey={hash}&addrtype={int} -``` - -field | value type | Description ---------- | ------- | ----------- -privkey | hash | no help info -addrtype | int | no help info - -## method: wif2priv - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"wif2priv\",\"wif\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/wif2priv?wif={string} -``` - -field | value type | Description ---------- | ------- | ----------- -wif | string | no help info - -## method: priv2wif - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"priv2wif\",\"priv\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/priv2wif?priv={string} -``` - -field | value type | Description ---------- | ------- | ----------- -priv | string | no help info - -## method: addr2rmd160 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"addr2rmd160\",\"address\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/addr2rmd160?address={string} -``` - -field | value type | Description ---------- | ------- | ----------- -address | string | no help info - -## method: rmd160conv - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"rmd160conv\",\"rmd160\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/rmd160conv?rmd160={string} -``` - -field | value type | Description ---------- | ------- | ----------- -rmd160 | string | no help info - -## method: cipher - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"cipher\",\"privkey\":\"{hash}\",\"destpubkey\":\"{hash}\",\"message\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/cipher?privkey={hash}&destpubkey={hash}&message={str} -``` - -field | value type | Description ---------- | ------- | ----------- -privkey | hash | no help info -destpubkey | hash | no help info -message | str | no help info - -## method: decipher - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"decipher\",\"privkey\":\"{hash}\",\"srcpubkey\":\"{hash}\",\"cipherstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/decipher?privkey={hash}&srcpubkey={hash}&cipherstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -privkey | hash | no help info -srcpubkey | hash | no help info -cipherstr | str | no help info - -## method: broadcastcipher - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"broadcastcipher\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/broadcastcipher?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: broadcastdecipher - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"broadcastdecipher\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/broadcastdecipher?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: multicastcipher - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"multicastcipher\",\"pubkey\":\"{hash}\",\"message\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/multicastcipher?pubkey={hash}&message={str} -``` - -field | value type | Description ---------- | ------- | ----------- -pubkey | hash | no help info -message | str | no help info - -## method: multicastdecipher - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"SuperNET\",\"method\":\"multicastdecipher\",\"privkey\":\"{hash}\",\"cipherstr\":\"{str}\"}" -``` - -```url -http://127.0.0.1:7778/api/SuperNET/multicastdecipher?privkey={hash}&cipherstr={str} -``` - -field | value type | Description ---------- | ------- | ----------- -privkey | hash | no help info -cipherstr | str | no help info - -mouse API -=== -need to create help/mouse.md file - -## method: image - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"image\",\"name\":\"{string}\",\"x\":\"{int}\",\"y\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/mouse/image?name={string}&x={int}&y={int} -``` - -field | value type | Description ---------- | ------- | ----------- -name | string | no help info -x | int | no help info -y | int | no help info - -## method: change - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"change\",\"name\":\"{string}\",\"x\":\"{int}\",\"y\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/mouse/change?name={string}&x={int}&y={int} -``` - -field | value type | Description ---------- | ------- | ----------- -name | string | no help info -x | int | no help info -y | int | no help info - -## method: click - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"click\",\"name\":\"{string}\",\"x\":\"{int}\",\"y\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/mouse/click?name={string}&x={int}&y={int} -``` - -field | value type | Description ---------- | ------- | ----------- -name | string | no help info -x | int | no help info -y | int | no help info - -## method: close - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"close\",\"name\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/mouse/close?name={string} -``` - -field | value type | Description ---------- | ------- | ----------- -name | string | no help info - -## method: leave - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"mouse\",\"method\":\"leave\",\"name\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/mouse/leave?name={string} -``` - -field | value type | Description ---------- | ------- | ----------- -name | string | no help info - -keyboard API -=== -need to create help/keyboard.md file - -## method: key - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"keyboard\",\"method\":\"key\",\"name\":\"{string}\",\"c\":\"{int}\"}" -``` - -```url -http://127.0.0.1:7778/api/keyboard/key?name={string}&c={int} -``` - -field | value type | Description ---------- | ------- | ----------- -name | string | no help info -c | int | no help info - -hash API -=== -need to create help/hash.md file - -## method: hex - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"hex\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/hex?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: unhex - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"unhex\",\"hexmsg\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/unhex?hexmsg={string} -``` - -field | value type | Description ---------- | ------- | ----------- -hexmsg | string | no help info - -## method: curve25519_pair - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"curve25519_pair\",\"element\":\"{hash}\",\"scalar\":\"{hash}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/curve25519_pair?element={hash}&scalar={hash} -``` - -field | value type | Description ---------- | ------- | ----------- -element | hash | no help info -scalar | hash | no help info - -## method: NXT - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"NXT\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/NXT?passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -passphrase | string | no help info - -## method: curve25519 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"curve25519\",\"pubkey\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/curve25519?pubkey={string} -``` - -field | value type | Description ---------- | ------- | ----------- -pubkey | string | no help info - -## method: crc32 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"crc32\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/crc32?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: base64_encode - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"base64_encode\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/base64_encode?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: base64_decode - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"base64_decode\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/base64_decode?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: rmd160_sha256 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd160_sha256\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/rmd160_sha256?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: sha256_sha256 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha256_sha256\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/sha256_sha256?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: sha224 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha224\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/sha224?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: sha256 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha256\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/sha256?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: sha384 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha384\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/sha384?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: sha512 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha512\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/sha512?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: rmd128 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd128\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/rmd128?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: rmd160 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd160\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/rmd160?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: rmd256 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd256\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/rmd256?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: rmd320 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"rmd320\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/rmd320?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: sha1 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"sha1\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/sha1?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: md2 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"md2\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/md2?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: md4 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"md4\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/md4?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: md5 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"md5\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/md5?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: tiger192_3 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"tiger192_3\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/tiger192_3?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -## method: whirlpool - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hash\",\"method\":\"whirlpool\",\"message\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hash/whirlpool?message={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info - -hmac API -=== -need to create help/hmac.md file - -## method: sha224 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha224\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/sha224?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: sha256 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha256\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/sha256?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: sha384 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha384\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/sha384?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: sha512 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha512\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/sha512?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: rmd128 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd128\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/rmd128?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: rmd160 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd160\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/rmd160?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: rmd256 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd256\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/rmd256?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: rmd320 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"rmd320\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/rmd320?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: sha1 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"sha1\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/sha1?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: md2 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"md2\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/md2?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: md4 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"md4\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/md4?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: md5 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"md5\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/md5?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: tiger192_3 - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"tiger192_3\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/tiger192_3?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -## method: whirlpool - -put helpful info here - - -```shell -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"hmac\",\"method\":\"whirlpool\",\"message\":\"{string}\",\"passphrase\":\"{string}\"}" -``` - -```url -http://127.0.0.1:7778/api/hmac/whirlpool?message={string}&passphrase={string} -``` - -field | value type | Description ---------- | ------- | ----------- -message | string | no help info -passphrase | string | no help info - -end of help - From 72d55612246f6057b68d6cd3f33591f5ba4b691f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 17:57:57 +0200 Subject: [PATCH 03/20] Test --- iguana/tests/walletpassphrase | 1 + 1 file changed, 1 insertion(+) diff --git a/iguana/tests/walletpassphrase b/iguana/tests/walletpassphrase index 1416189c8..dc5eae04e 100755 --- a/iguana/tests/walletpassphrase +++ b/iguana/tests/walletpassphrase @@ -1,3 +1,4 @@ #!/bin/bash #curl --url "http://127.0.0.1:7778" --data "{\"method\":\"walletpassphrase\",\"params\":[\"test\", 600]}" curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"walletpassphrase\",\"password\":\"test\",\"timeout\":86444}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"jumblr\",\"method\":\"setpassphrase\",\"passphrase\":\"test\"}" From 55ebdcb8242fde2cc2963941b6f45ae5e5f5f17f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:02:45 +0200 Subject: [PATCH 04/20] Test --- basilisk/jumblr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 041bfe1c6..956c27979 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -329,7 +329,7 @@ STRING_ARG(jumblr,setpassphrase,passphrase) jumblr_privkey(myinfo,BTCaddr,KMDaddr,""); jaddstr(retjson,"BTCjumblr","notyet"); jaddstr(retjson,"KMDjumblr",KMDaddr); - return(clonestr("{\"result\":\"success\"}")); + return(jprint(retjson,1)); } } From 2cd1700bbacfa334eb8a4724d972d16fa3706ff1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:10:58 +0200 Subject: [PATCH 05/20] Test --- basilisk/jumblr.c | 1 + iguana/main.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 956c27979..680faed18 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -238,6 +238,7 @@ void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int3 OS_randombytes(&r,sizeof(r)); if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) { + printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); switch ( selector ) { case 0: // public -> z diff --git a/iguana/main.c b/iguana/main.c index 7c6b7b98d..7b6dd88c0 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -751,9 +751,9 @@ void jumblr_loop(void *ptr) while ( 1 ) { t = (uint32_t)time(NULL); - if ( (coin= iguana_coinfind("KMD")) != 0 && coin->FULLNODE < 0 && myinfo->jumblr_passphrase[0] != 0 && (t % 1200) < 60 ) + if ( (coin= iguana_coinfind("KMD")) != 0 && coin->FULLNODE < 0 && myinfo->jumblr_passphrase[0] != 0 && (t % 120) < 6 ) { - jumblr_iteration(myinfo,coin,(t % 3600) / 1200,t % 1200); + jumblr_iteration(myinfo,coin,(t % 360) / 120,t % 120); } sleep(20); } From 249f2846a4ccd893534b3e295814d3291fe9512c Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:19:27 +0200 Subject: [PATCH 06/20] Test --- basilisk/jumblr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 680faed18..5e5c658b6 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -236,6 +236,7 @@ void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int3 // if BTC has arrived in destination address, invoke DEX -> BTC fee = JUMBLR_INCR * JUMBLR_FEE; OS_randombytes(&r,sizeof(r)); +r = 0; if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) { printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); From 5886b37f51b1c8d9e80655a9f8fa5754ce2a5962 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:25:47 +0200 Subject: [PATCH 07/20] Test --- basilisk/jumblr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 5e5c658b6..ef95a8e64 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -237,6 +237,7 @@ void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int3 fee = JUMBLR_INCR * JUMBLR_FEE; OS_randombytes(&r,sizeof(r)); r = 0; + printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) { printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); From 0634b3edf79ab99981c0473ae5a07a63bb8207d8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:28:36 +0200 Subject: [PATCH 08/20] Test --- iguana/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/main.c b/iguana/main.c index 7b6dd88c0..218eac812 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -748,6 +748,7 @@ void iguana_urlinit(struct supernet_info *myinfo,int32_t ismainnet,int32_t usess void jumblr_loop(void *ptr) { struct iguana_info *coin; uint32_t t; struct supernet_info *myinfo = ptr; + printf("JUMBLR loop\n"); while ( 1 ) { t = (uint32_t)time(NULL); @@ -755,6 +756,7 @@ void jumblr_loop(void *ptr) { jumblr_iteration(myinfo,coin,(t % 360) / 120,t % 120); } + printf("t.%u %p\n",t,coin); sleep(20); } } From 574aebdbee0c2b77c06f2fd7e093eeb0aa7f542a Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:35:08 +0200 Subject: [PATCH 09/20] Test --- iguana/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/main.c b/iguana/main.c index 218eac812..daf9c52a2 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -752,11 +752,11 @@ void jumblr_loop(void *ptr) while ( 1 ) { t = (uint32_t)time(NULL); - if ( (coin= iguana_coinfind("KMD")) != 0 && coin->FULLNODE < 0 && myinfo->jumblr_passphrase[0] != 0 && (t % 120) < 6 ) + if ( (coin= iguana_coinfind("KMD")) != 0 && coin->FULLNODE < 0 && myinfo->jumblr_passphrase[0] != 0 && (t % 120) < 60 ) { jumblr_iteration(myinfo,coin,(t % 360) / 120,t % 120); } - printf("t.%u %p\n",t,coin); + printf("t.%u %p.%d %s\n",t,coin,coin!=0?coin->FULLNODE:0,myinfo->jumblr_passphrase); sleep(20); } } From 6522e750b86abe7d84fb990200937a2f6833ccca Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:37:47 +0200 Subject: [PATCH 10/20] Test --- basilisk/jumblr.c | 2 +- iguana/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index ef95a8e64..1c34b3461 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -237,7 +237,7 @@ void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int3 fee = JUMBLR_INCR * JUMBLR_FEE; OS_randombytes(&r,sizeof(r)); r = 0; - printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); + printf("JUMBLR.%s %d selector.%d modval.%d r.%d\n",coin->symbol,coin->FULLNODE,selector,modval,r&7); if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) { printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); diff --git a/iguana/main.c b/iguana/main.c index daf9c52a2..c7e19ec8f 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -756,7 +756,7 @@ void jumblr_loop(void *ptr) { jumblr_iteration(myinfo,coin,(t % 360) / 120,t % 120); } - printf("t.%u %p.%d %s\n",t,coin,coin!=0?coin->FULLNODE:0,myinfo->jumblr_passphrase); + //printf("t.%u %p.%d %s\n",t,coin,coin!=0?coin->FULLNODE:0,myinfo->jumblr_passphrase); sleep(20); } } From a01d0ec247ad584e5513366c60e91347a94c5bb6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 18:49:54 +0200 Subject: [PATCH 11/20] batch12 --- iguana/main.c | 4 +- iguana/tests/KMD.batch12 | 141 ++++++++++++++++++++++++ iguana/tests/KMD.batch12.importaddress | 139 +++++++++++++++++++++++ iguana/tests/KMD.batch12.listunspent | 112 +++++++++++++++++++ iguana/tests/REVS.batch12 | 14 +++ iguana/tests/REVS.batch12.importaddress | 12 ++ iguana/tests/dexgetbalance | 3 +- iguana/tests/request | 2 +- 8 files changed, 423 insertions(+), 4 deletions(-) create mode 100755 iguana/tests/KMD.batch12 create mode 100755 iguana/tests/KMD.batch12.importaddress create mode 100755 iguana/tests/KMD.batch12.listunspent create mode 100755 iguana/tests/REVS.batch12 create mode 100755 iguana/tests/REVS.batch12.importaddress diff --git a/iguana/main.c b/iguana/main.c index c7e19ec8f..dbc632b66 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1643,7 +1643,7 @@ void komodo_ICO_batch(cJSON *array,int32_t batchid) printf("# %s KMD %.8f\n",coinaddr,dstr(kmdamount)); if ( (iter & 1) == 0 ) { - if ( (0) ) + if ( (1) ) { printf("curl --url \"http://127.0.0.1:7778\" --data \"{\\\"agent\\\":\\\"dex\\\",\\\"method\\\":\\\"importaddress\\\",\\\"address\\\":\\\"%s\\\",\\\"symbol\\\":\\\"KMD\\\"}\" # %.8f\n",coinaddr,dstr(kmdamount)); printf("sleep 3\n"); @@ -1707,7 +1707,7 @@ void iguana_main(void *arg) else printf("ENDIAN ERROR\n"); mycalloc(0,0,0); #ifdef __APPLE__ - char *batchstr,*batchstr2; cJSON *batchjson; long batchsize; char fname[512],fname2[512]; int32_t batchid = 12; + char *batchstr,*batchstr2; cJSON *batchjson; long batchsize; char fname[512],fname2[512]; int32_t batchid = 13; sprintf(fname,"REVS.raw"), sprintf(fname2,"REVS.rawtxids"); if ( (0) && (batchstr= OS_filestr(&batchsize,fname)) != 0 && (batchstr2= OS_filestr(&batchsize,fname2)) != 0 ) { diff --git a/iguana/tests/KMD.batch12 b/iguana/tests/KMD.batch12 new file mode 100755 index 000000000..f4b24ca4a --- /dev/null +++ b/iguana/tests/KMD.batch12 @@ -0,0 +1,141 @@ +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762, REVS 31.12033224 +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762 +./komodo-cli sendtoaddress RDTjem9CP97XPXvet1sQBb428xrmSZJSsd 1568.45531762 +sleep 3 +echo "1568.45531762 <- expected amount RDTjem9CP97XPXvet1sQBb428xrmSZJSsd" + +# RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz KMD 73430.96919475 +./komodo-cli sendtoaddress RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz 73430.96919475 +sleep 3 +echo "73430.96919475 <- expected amount RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz" + +# RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE KMD 5689.04575312 +./komodo-cli sendtoaddress RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE 5689.04575312 +sleep 3 +echo "5689.04575312 <- expected amount RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE" + +# RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT KMD 17817.00058850 +./komodo-cli sendtoaddress RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT 17817.00058850 +sleep 3 +echo "17817.00058850 <- expected amount RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT" + +# RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB KMD 202518.10752377 +./komodo-cli sendtoaddress RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB 202518.10752377 +sleep 3 +echo "202518.10752377 <- expected amount RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB" + +# RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf KMD 6963.60677351 +./komodo-cli sendtoaddress RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf 6963.60677351 +sleep 3 +echo "6963.60677351 <- expected amount RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf" + +# RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv KMD 32042.52085087 +./komodo-cli sendtoaddress RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv 32042.52085087 +sleep 3 +echo "32042.52085087 <- expected amount RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv" + +# RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A KMD 2135.12309659 +./komodo-cli sendtoaddress RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A 2135.12309659 +sleep 3 +echo "2135.12309659 <- expected amount RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A" + +# RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic KMD 5533.00461690 +./komodo-cli sendtoaddress RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic 5533.00461690 +sleep 3 +echo "5533.00461690 <- expected amount RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic" + +# RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i KMD 50.26846585 +./komodo-cli sendtoaddress RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i 50.26846585 +sleep 3 +echo "50.26846585 <- expected amount RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i" + +# RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7 KMD 1733.05190072 +./komodo-cli sendtoaddress RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7 1733.05190072 +sleep 3 +echo "1733.05190072 <- expected amount RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7" + +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290, REVS 139.09398517 +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290 +./komodo-cli sendtoaddress RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y 11852.83167290 +sleep 3 +echo "11852.83167290 <- expected amount RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y" + +# RH9CANWQNvqSktmX39ruDfiNFimcToD2ur KMD 43125.33019700 +./komodo-cli sendtoaddress RH9CANWQNvqSktmX39ruDfiNFimcToD2ur 43125.33019700 +sleep 3 +echo "43125.33019700 <- expected amount RH9CANWQNvqSktmX39ruDfiNFimcToD2ur" + +# RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b KMD 36837.09249870 +./komodo-cli sendtoaddress RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b 36837.09249870 +sleep 3 +echo "36837.09249870 <- expected amount RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b" + +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526, REVS 59.85500000 +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526 +./komodo-cli sendtoaddress RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 3016.26045526 +sleep 3 +echo "3016.26045526 <- expected amount RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8" + +# RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb KMD 91240.39653929 +./komodo-cli sendtoaddress RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb 91240.39653929 +sleep 3 +echo "91240.39653929 <- expected amount RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb" + +# RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury KMD 2440.00507548 +./komodo-cli sendtoaddress RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury 2440.00507548 +sleep 3 +echo "2440.00507548 <- expected amount RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury" + +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934, REVS 75.88015839 +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934 +./komodo-cli sendtoaddress RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX 3823.81289934 +sleep 3 +echo "3823.81289934 <- expected amount RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX" + +# RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz KMD 2772.48246697 +./komodo-cli sendtoaddress RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz 2772.48246697 +sleep 3 +echo "2772.48246697 <- expected amount RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz" + +# RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv KMD 693.08132289 +./komodo-cli sendtoaddress RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv 693.08132289 +sleep 3 +echo "693.08132289 <- expected amount RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv" + +# RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut KMD 10316.17621736 +./komodo-cli sendtoaddress RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut 10316.17621736 +sleep 3 +echo "10316.17621736 <- expected amount RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut" + +# RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW KMD 29566.93551966 +./komodo-cli sendtoaddress RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW 29566.93551966 +sleep 3 +echo "29566.93551966 <- expected amount RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW" + +# RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX KMD 19365.33667225 +./komodo-cli sendtoaddress RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX 19365.33667225 +sleep 3 +echo "19365.33667225 <- expected amount RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX" + +# R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X KMD 55229.13842423 +./komodo-cli sendtoaddress R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X 55229.13842423 +sleep 3 +echo "55229.13842423 <- expected amount R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X" + +# RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB KMD 29049.45748125 +./komodo-cli sendtoaddress RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB 29049.45748125 +sleep 3 +echo "29049.45748125 <- expected amount RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB" + +# RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47 KMD 10066.89321267 +./komodo-cli sendtoaddress RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47 10066.89321267 +sleep 3 +echo "10066.89321267 <- expected amount RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47" + +# RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ KMD 2834.17657315 +./komodo-cli sendtoaddress RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ 2834.17657315 +sleep 3 +echo "2834.17657315 <- expected amount RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ" + + +# total KMD 701710.56131060 REVS 0.00000000 diff --git a/iguana/tests/KMD.batch12.importaddress b/iguana/tests/KMD.batch12.importaddress new file mode 100755 index 000000000..c140a3396 --- /dev/null +++ b/iguana/tests/KMD.batch12.importaddress @@ -0,0 +1,139 @@ +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762, REVS 31.12033224 +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RDTjem9CP97XPXvet1sQBb428xrmSZJSsd\",\"symbol\":\"KMD\"}" # 1568.45531762 +sleep 3 +echo "1568.45531762 <- expected amount RDTjem9CP97XPXvet1sQBb428xrmSZJSsd" + +# RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz KMD 73430.96919475 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz\",\"symbol\":\"KMD\"}" # 73430.96919475 +sleep 3 +echo "73430.96919475 <- expected amount RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz" + +# RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE KMD 5689.04575312 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE\",\"symbol\":\"KMD\"}" # 5689.04575312 +sleep 3 +echo "5689.04575312 <- expected amount RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE" + +# RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT KMD 17817.00058850 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT\",\"symbol\":\"KMD\"}" # 17817.00058850 +sleep 3 +echo "17817.00058850 <- expected amount RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT" + +# RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB KMD 202518.10752377 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB\",\"symbol\":\"KMD\"}" # 202518.10752377 +sleep 3 +echo "202518.10752377 <- expected amount RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB" + +# RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf KMD 6963.60677351 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf\",\"symbol\":\"KMD\"}" # 6963.60677351 +sleep 3 +echo "6963.60677351 <- expected amount RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf" + +# RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv KMD 32042.52085087 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv\",\"symbol\":\"KMD\"}" # 32042.52085087 +sleep 3 +echo "32042.52085087 <- expected amount RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv" + +# RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A KMD 2135.12309659 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A\",\"symbol\":\"KMD\"}" # 2135.12309659 +sleep 3 +echo "2135.12309659 <- expected amount RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A" + +# RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic KMD 5533.00461690 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic\",\"symbol\":\"KMD\"}" # 5533.00461690 +sleep 3 +echo "5533.00461690 <- expected amount RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic" + +# RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i KMD 50.26846585 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i\",\"symbol\":\"KMD\"}" # 50.26846585 +sleep 3 +echo "50.26846585 <- expected amount RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i" + +# RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7 KMD 1733.05190072 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7\",\"symbol\":\"KMD\"}" # 1733.05190072 +sleep 3 +echo "1733.05190072 <- expected amount RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7" + +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290, REVS 139.09398517 +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y\",\"symbol\":\"KMD\"}" # 11852.83167290 +sleep 3 +echo "11852.83167290 <- expected amount RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y" + +# RH9CANWQNvqSktmX39ruDfiNFimcToD2ur KMD 43125.33019700 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RH9CANWQNvqSktmX39ruDfiNFimcToD2ur\",\"symbol\":\"KMD\"}" # 43125.33019700 +sleep 3 +echo "43125.33019700 <- expected amount RH9CANWQNvqSktmX39ruDfiNFimcToD2ur" + +# RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b KMD 36837.09249870 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b\",\"symbol\":\"KMD\"}" # 36837.09249870 +sleep 3 +echo "36837.09249870 <- expected amount RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b" + +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526, REVS 59.85500000 +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8\",\"symbol\":\"KMD\"}" # 3016.26045526 +sleep 3 +echo "3016.26045526 <- expected amount RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8" + +# RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb KMD 91240.39653929 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb\",\"symbol\":\"KMD\"}" # 91240.39653929 +sleep 3 +echo "91240.39653929 <- expected amount RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb" + +# RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury KMD 2440.00507548 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury\",\"symbol\":\"KMD\"}" # 2440.00507548 +sleep 3 +echo "2440.00507548 <- expected amount RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury" + +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934, REVS 75.88015839 +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX\",\"symbol\":\"KMD\"}" # 3823.81289934 +sleep 3 +echo "3823.81289934 <- expected amount RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX" + +# RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz KMD 2772.48246697 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz\",\"symbol\":\"KMD\"}" # 2772.48246697 +sleep 3 +echo "2772.48246697 <- expected amount RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz" + +# RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv KMD 693.08132289 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv\",\"symbol\":\"KMD\"}" # 693.08132289 +sleep 3 +echo "693.08132289 <- expected amount RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv" + +# RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut KMD 10316.17621736 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut\",\"symbol\":\"KMD\"}" # 10316.17621736 +sleep 3 +echo "10316.17621736 <- expected amount RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut" + +# RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW KMD 29566.93551966 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW\",\"symbol\":\"KMD\"}" # 29566.93551966 +sleep 3 +echo "29566.93551966 <- expected amount RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW" + +# RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX KMD 19365.33667225 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX\",\"symbol\":\"KMD\"}" # 19365.33667225 +sleep 3 +echo "19365.33667225 <- expected amount RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX" + +# R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X KMD 55229.13842423 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X\",\"symbol\":\"KMD\"}" # 55229.13842423 +sleep 3 +echo "55229.13842423 <- expected amount R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X" + +# RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB KMD 29049.45748125 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB\",\"symbol\":\"KMD\"}" # 29049.45748125 +sleep 3 +echo "29049.45748125 <- expected amount RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB" + +# RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47 KMD 10066.89321267 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47\",\"symbol\":\"KMD\"}" # 10066.89321267 +sleep 3 +echo "10066.89321267 <- expected amount RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47" + +# RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ KMD 2834.17657315 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ\",\"symbol\":\"KMD\"}" # 2834.17657315 +sleep 3 +echo "2834.17657315 <- expected amount RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ" + diff --git a/iguana/tests/KMD.batch12.listunspent b/iguana/tests/KMD.batch12.listunspent new file mode 100755 index 000000000..b54d4d79c --- /dev/null +++ b/iguana/tests/KMD.batch12.listunspent @@ -0,0 +1,112 @@ +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762, REVS 31.12033224 +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RDTjem9CP97XPXvet1sQBb428xrmSZJSsd\",\"symbol\":\"KMD\"}" +echo "1568.45531762 <- expected amount RDTjem9CP97XPXvet1sQBb428xrmSZJSsd" + +# RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz KMD 73430.96919475 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz\",\"symbol\":\"KMD\"}" +echo "73430.96919475 <- expected amount RAvtq1kazCRZUvWvPsN7ioY2Vt1EYtgpuz" + +# RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE KMD 5689.04575312 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE\",\"symbol\":\"KMD\"}" +echo "5689.04575312 <- expected amount RWxT4Jfwp1Bv6RYdUMdrQ6oXt6dMsQZ8jE" + +# RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT KMD 17817.00058850 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT\",\"symbol\":\"KMD\"}" +echo "17817.00058850 <- expected amount RXQxetCQScefabaJaFyqCJ1FvfNwsKtvMT" + +# RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB KMD 202518.10752377 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB\",\"symbol\":\"KMD\"}" +echo "202518.10752377 <- expected amount RPqAFgwnB1hjae6Ar4Kms973uS93HbDkoB" + +# RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf KMD 6963.60677351 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf\",\"symbol\":\"KMD\"}" +echo "6963.60677351 <- expected amount RH4SXj2zZqfG4TfejyHcVpaoPoDv1Uonnf" + +# RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv KMD 32042.52085087 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv\",\"symbol\":\"KMD\"}" +echo "32042.52085087 <- expected amount RXyXDkiMmU8jdnCuyCrZHqWthU4kp9PUhv" + +# RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A KMD 2135.12309659 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A\",\"symbol\":\"KMD\"}" +echo "2135.12309659 <- expected amount RWTfFTP7c9WxLhgxd2EXSsKszpDVPXHN8A" + +# RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic KMD 5533.00461690 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic\",\"symbol\":\"KMD\"}" +echo "5533.00461690 <- expected amount RAGhCfNvxpL55JFV7h2HQa5dSEK86Jg3ic" + +# RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i KMD 50.26846585 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i\",\"symbol\":\"KMD\"}" +echo "50.26846585 <- expected amount RDoLVY35wbzTXZ9QgFRSAzHfAiYYG7e65i" + +# RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7 KMD 1733.05190072 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7\",\"symbol\":\"KMD\"}" +echo "1733.05190072 <- expected amount RMHZ76hvxs8n2yDnkUa122rs5gubMxhiw7" + +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290, REVS 139.09398517 +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y\",\"symbol\":\"KMD\"}" +echo "11852.83167290 <- expected amount RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y" + +# RH9CANWQNvqSktmX39ruDfiNFimcToD2ur KMD 43125.33019700 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RH9CANWQNvqSktmX39ruDfiNFimcToD2ur\",\"symbol\":\"KMD\"}" +echo "43125.33019700 <- expected amount RH9CANWQNvqSktmX39ruDfiNFimcToD2ur" + +# RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b KMD 36837.09249870 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b\",\"symbol\":\"KMD\"}" +echo "36837.09249870 <- expected amount RSp4ceoTDQt7fbweFBpEbvbTTH8J9SEp4b" + +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526, REVS 59.85500000 +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8\",\"symbol\":\"KMD\"}" +echo "3016.26045526 <- expected amount RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8" + +# RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb KMD 91240.39653929 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb\",\"symbol\":\"KMD\"}" +echo "91240.39653929 <- expected amount RLWvbjH97gqjGXsRyPijDmwuKNFqsaaerb" + +# RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury KMD 2440.00507548 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury\",\"symbol\":\"KMD\"}" +echo "2440.00507548 <- expected amount RGoB4uxdk2SDs5yCerizsQ3UFD7NqJjury" + +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934, REVS 75.88015839 +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX\",\"symbol\":\"KMD\"}" +echo "3823.81289934 <- expected amount RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX" + +# RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz KMD 2772.48246697 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz\",\"symbol\":\"KMD\"}" +echo "2772.48246697 <- expected amount RLyaf3XgjHruSeJd4oj83E8btck7kYPmVz" + +# RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv KMD 693.08132289 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv\",\"symbol\":\"KMD\"}" +echo "693.08132289 <- expected amount RHJ55iWUQNbKcSn8shbv1RbGuip3RSRHFv" + +# RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut KMD 10316.17621736 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut\",\"symbol\":\"KMD\"}" +echo "10316.17621736 <- expected amount RQgfzPR4zeCyLWaddHysGEVzoKLZa5E4Ut" + +# RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW KMD 29566.93551966 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW\",\"symbol\":\"KMD\"}" +echo "29566.93551966 <- expected amount RAGGPNoZgxAj6ABBTwehQfVYEa1PEN4qZW" + +# RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX KMD 19365.33667225 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX\",\"symbol\":\"KMD\"}" +echo "19365.33667225 <- expected amount RNQzdseaqPikT6Df2ECFQXxW4yUr4fahqX" + +# R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X KMD 55229.13842423 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X\",\"symbol\":\"KMD\"}" +echo "55229.13842423 <- expected amount R9PwsNzuksjJzZUAAX4yfDwdSy5Y4KP25X" + +# RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB KMD 29049.45748125 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB\",\"symbol\":\"KMD\"}" +echo "29049.45748125 <- expected amount RC3DmLpKZyMD66JnKXVRHT9AVcok9xwGgB" + +# RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47 KMD 10066.89321267 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47\",\"symbol\":\"KMD\"}" +echo "10066.89321267 <- expected amount RHy56MTg74v8AY1Eo2RgbohbMbdHjUDN47" + +# RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ KMD 2834.17657315 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"listunspent\",\"address\":\"RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ\",\"symbol\":\"KMD\"}" +echo "2834.17657315 <- expected amount RDdUQ5t6SYYGZUdAxBk5i7QdTWvzAshxNZ" + diff --git a/iguana/tests/REVS.batch12 b/iguana/tests/REVS.batch12 new file mode 100755 index 000000000..78ad38586 --- /dev/null +++ b/iguana/tests/REVS.batch12 @@ -0,0 +1,14 @@ +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762, REVS 31.12033224 +sleep 1 +fiat/revs sendtoaddress RDTjem9CP97XPXvet1sQBb428xrmSZJSsd 31.12033224 +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290, REVS 139.09398517 +sleep 1 +fiat/revs sendtoaddress RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y 139.09398517 +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526, REVS 59.85500000 +sleep 1 +fiat/revs sendtoaddress RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 59.85500000 +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934, REVS 75.88015839 +sleep 1 +fiat/revs sendtoaddress RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX 75.88015839 + +# total KMD 0.00000000 REVS 305.94947580 diff --git a/iguana/tests/REVS.batch12.importaddress b/iguana/tests/REVS.batch12.importaddress new file mode 100755 index 000000000..53ae5be86 --- /dev/null +++ b/iguana/tests/REVS.batch12.importaddress @@ -0,0 +1,12 @@ +# RDTjem9CP97XPXvet1sQBb428xrmSZJSsd KMD 1568.45531762, REVS 31.12033224 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RDTjem9CP97XPXvet1sQBb428xrmSZJSsd\",\"symbol\":\"REVS\"}" # 31.12033224 +sleep 3 +# RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y KMD 11852.83167290, REVS 139.09398517 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RHmVdfQM3PbJayYGbYnGtsqiWD9gDt2n4y\",\"symbol\":\"REVS\"}" # 139.09398517 +sleep 3 +# RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8 KMD 3016.26045526, REVS 59.85500000 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RUbMmLRMeSf2xnBHspdzS2JC3e8epKmoM8\",\"symbol\":\"REVS\"}" # 59.85500000 +sleep 3 +# RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX KMD 3823.81289934, REVS 75.88015839 +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"importaddress\",\"address\":\"RXQBgNYtszvmdwniLu1nteS9MX1xD75bNX\",\"symbol\":\"REVS\"}" # 75.88015839 +sleep 3 diff --git a/iguana/tests/dexgetbalance b/iguana/tests/dexgetbalance index d0f90e62b..0e91dac58 100755 --- a/iguana/tests/dexgetbalance +++ b/iguana/tests/dexgetbalance @@ -1,2 +1,3 @@ #!/bin/bash -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"address\":\"RU58D7nNLXwD29hgC2MPgtAF458gGxnPYS\",\"symbol\":\"KMD\"}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"address\":\"RRyBxbrAPRUBCUpiJgJZYrkxqrh8x5ta9Z\",\"symbol\":\"KMD\"}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"address\":\"RRyBxbrAPRUBCUpiJgJZYrkxqrh8x5ta9Z\",\"symbol\":\"USD\"}" diff --git a/iguana/tests/request b/iguana/tests/request index 58ccace04..ac3337301 100755 --- a/iguana/tests/request +++ b/iguana/tests/request @@ -1,3 +1,3 @@ #!/bin/bash -curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"request\",\"vals\":{\"source\":\"BTCD\",\"amount\":0.03,\"dest\":\"BTC\",\"minprice\":0.002}}" +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"InstantDEX\",\"method\":\"request\",\"vals\":{\"source\":\"KMD\",\"amount\":20,\"dest\":\"USD\",\"minprice\":0.08}}" From 70401e923cab79fc2f3c228f97b188dcd1c2a26d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 19:12:50 +0200 Subject: [PATCH 12/20] Test --- basilisk/jumblr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 1c34b3461..6e82caa2c 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -262,9 +262,9 @@ r = 0; free(retstr); } free(zaddr); - } + } else printf("no zaddr from jumblr_zgetnewaddress\n"); } - } + } else printf("%s total %.8f vs %.8f\n",KMDaddr,dstr(total),(JUMBLR_INCR + 3*(fee+JUMBLR_TXFEE))); break; case 1: // z -> z jumblr_opidsupdate(myinfo,coin); From 247e7c95c418f9af7370dc2b4129827529e0d47d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 19:42:52 +0200 Subject: [PATCH 13/20] Test --- basilisk/jumblr.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 6e82caa2c..90636c492 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -132,8 +132,20 @@ int64_t jumblr_receivedby(struct supernet_info *myinfo,struct iguana_info *coin, int64_t jumblr_balance(struct supernet_info *myinfo,struct iguana_info *coin,char *addr) { - char *retstr; double val; int64_t balance = 0; - if ( (retstr= jumblr_zgetbalance(myinfo,coin,addr)) != 0 ) + char *retstr; double val; cJSON *retjson; int64_t balance = 0; + if ( strlen(addr) < 40 ) + { + if ( (retstr= _dex_getbalance(myinfo,coin->symbol,addr)) != 0 ) + { + if ( (retjson= cJSON_Parse(retstr)) != 0 ) + { + balance = jdouble(retjson,"balance") * SATOSHIDEN; + free_json(retjson); + } + free(retstr); + } + } + else if ( (retstr= jumblr_zgetbalance(myinfo,coin,addr)) != 0 ) { if ( (val= atof(retstr)) > SMALLVAL ) balance = val * SATOSHIDEN; From a6e2e55e8136d8055fa326d923c7f2def0948e65 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 19:49:19 +0200 Subject: [PATCH 14/20] Test --- basilisk/jumblr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 90636c492..921f7360e 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -75,21 +75,21 @@ char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) { char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}]], 1, %.8f",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]]\", 1, %.8f",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddrS,char *zaddrD,double amount) { char params[1024]; double fee = (amount-2*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_t(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddr,char *taddr,double amount) { char params[1024]; double fee = (amount-JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } @@ -249,7 +249,6 @@ void jumblr_iteration(struct supernet_info *myinfo,struct iguana_info *coin,int3 fee = JUMBLR_INCR * JUMBLR_FEE; OS_randombytes(&r,sizeof(r)); r = 0; - printf("JUMBLR.%s %d selector.%d modval.%d r.%d\n",coin->symbol,coin->FULLNODE,selector,modval,r&7); if ( strcmp(coin->symbol,"KMD") == 0 && coin->FULLNODE < 0 ) { printf("JUMBLR selector.%d modval.%d r.%d\n",selector,modval,r&7); From c1497141c3ba7514cf2db3c00919a2f508b84621 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 19:55:15 +0200 Subject: [PATCH 15/20] Test --- basilisk/jumblr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 921f7360e..93a5cb11f 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -75,21 +75,21 @@ char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) { char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]]\", 1, %.8f",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]]\", 1, %.8f",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddrS,char *zaddrD,double amount) { char params[1024]; double fee = (amount-2*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]\", 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_t(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddr,char *taddr,double amount) { char params[1024]; double fee = (amount-JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]\", 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } From 846b13cac3d4e6816c8daf5474de08cd4dc72824 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 20:04:03 +0200 Subject: [PATCH 16/20] Test --- basilisk/jumblr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 93a5cb11f..35b96646b 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -75,21 +75,21 @@ char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) { char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]]\", 1, %.8f",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddrS,char *zaddrD,double amount) { char params[1024]; double fee = (amount-2*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]\", 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_t(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddr,char *taddr,double amount) { char params[1024]; double fee = (amount-JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]\", 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } From d71be23c8019b873a063555ab5bf74ff604a4fa9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 20:07:07 +0200 Subject: [PATCH 17/20] Test --- basilisk/jumblr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 35b96646b..e26fd3b14 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -75,7 +75,7 @@ char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) { char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]\", 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } From c7be132fd1b1c446a733d1f22f8069f3f988cf96 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 20:12:51 +0200 Subject: [PATCH 18/20] Test --- basilisk/jumblr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index e26fd3b14..804660308 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -75,21 +75,21 @@ char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) { char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\\\"%s\\\":%.8f}, {\\\"%s\\\":%.8f}]\", 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddrS,char *zaddrD,double amount) { char params[1024]; double fee = (amount-2*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_t(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddr,char *taddr,double amount) { char params[1024]; double fee = (amount-JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", \"[{\"%s\":%.8f}, {\"%s\":%.8f}]\", 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } From e6745ea2c32328700abf8d70f4880399b422278e Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 20:19:52 +0200 Subject: [PATCH 19/20] Test --- basilisk/jumblr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 804660308..50c279d2e 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -75,21 +75,21 @@ char *jumblr_zgetoperationresult(struct supernet_info *myinfo,struct iguana_info char *jumblr_sendt_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *taddr,char *zaddr,double amount) { char params[1024]; double fee = (amount-3*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", [{\"address\":\"%s\",\"amount\":%.8f}, {\"address\":\"%s\",\"amount\":%.8f}], 1, %.8f]",taddr,zaddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_z(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddrS,char *zaddrD,double amount) { char params[1024]; double fee = (amount-2*JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", [{\"address\":\"%s\",\"amount\":%.8f}, {\"address\":\"%s\",\"amount\":%.8f}], 1, %.8f]",zaddrS,zaddrD,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } char *jumblr_sendz_to_t(struct supernet_info *myinfo,struct iguana_info *coin,char *zaddr,char *taddr,double amount) { char params[1024]; double fee = (amount-JUMBLR_TXFEE) * JUMBLR_FEE; - sprintf(params,"[\"%s\", [{\"%s\":%.8f}, {\"%s\":%.8f}], 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); + sprintf(params,"[\"%s\", [{\"address\":\"%s\",\"amount\":%.8f}, {\"address\":\"%s\",\"amount\":%.8f}], 1, %.8f]",zaddr,taddr,amount-fee-JUMBLR_TXFEE,JUMBLR_ADDR,fee,JUMBLR_TXFEE); return(bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"z_sendmany",params)); } From 8bb5475544de599c661f51bf20abfaa4ac99526a Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 3 Mar 2017 20:28:50 +0200 Subject: [PATCH 20/20] Test --- iguana/iguana_payments.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index fbe9ba5b5..86f22cb3c 100755 --- a/iguana/iguana_payments.c +++ b/iguana/iguana_payments.c @@ -538,7 +538,7 @@ char *iguana_calcutxorawtx(struct supernet_info *myinfo,struct iguana_info *coin { } - else if ( (sobj= jobj(item,"scriptPubKey")) == 0 && (spendscriptstr= jstr(sobj,"hex")) == 0 ) + else if ( (sobj= jobj(item,"scriptPubKey")) == 0 || (spendscriptstr= jstr(sobj,"hex")) == 0 ) { printf("no spendscript (%s)\n",jprint(item,0)); continue;