diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 990c374bc..78a72867a 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -1643,8 +1643,8 @@ char *LP_txblast(struct iguana_info *coin,cJSON *argjson) int32_t broadcast,i,num,numblast,utxovout,completed=0,numvouts,changeout; char *passphrase,changeaddr[64],vinaddr[64],wifstr[65],blastaddr[65],str[65],*signret,*signedtx=0,*rawtx=0; struct vin_info V; uint32_t locktime,starttime; uint8_t pubkey33[33]; cJSON *retjson,*item,*outputs,*vins=0,*txobj=0,*privkeys=0; struct iguana_msgtx msgtx; bits256 privkey,pubkey,checktxid,utxotxid,signedtxid; uint64_t txfee,utxovalue,change; if ( ctx == 0 ) ctx = bitcoin_ctx(); - if ( (passphrase= jstr(argjson,"passphrase")) == 0 ) - return(clonestr("{\"error\":\"need passphrase\"}")); + if ( (passphrase= jstr(argjson,"password")) == 0 ) + return(clonestr("{\"error\":\"need password\"}")); outputs = jarray(&numvouts,argjson,"outputs"); utxotxid = jbits256(argjson,"utxotxid"); utxovout = jint(argjson,"utxovout"); diff --git a/iguana/exchanges/txblast b/iguana/exchanges/txblast new file mode 100755 index 000000000..cc0d5465b --- /dev/null +++ b/iguana/exchanges/txblast @@ -0,0 +1,3 @@ +#!/bin/bash +source userpass +curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"password\":\"default\",\"utxotxid\":\"44ea381e265a29ead0a23d93245be26f828c6e0098e7732fb4101d46c50b8687\",\"utxovout\":1,\"utxovalue\":100000000,\"txfee\":20000,\"method\":\"txblast\",\"coin\":\"PIZZA\",\"outputs\":[{\"RUgW6fLfVsLJ87Ng4zJTqNedJSKYQ9ToAf\":0.0001}, {\"RLMHGUQginEGrnRtHoFBPZhLC9jeVdt1th\":0.0001}]}"