def issuenewcoins_clientside(): issuing_address=str(request.form['issuing_address']) more_coins=request.form['more_coins'] coin_recipients=str(request.form['coin_recipients']) #DISCREPANCY, SHOULD BE ARRAY for multiple othermeta='COIN NAME HERE' fee=0.00005 print coin_recipients print more_coins print issuing_address print fee print othermeta tx=transactions.create_issuing_tx_unsigned(issuing_address, coin_recipients, fee, more_coins,othermeta) #return 'a' return str(tx)
def issuenewcoins_clientside(): issuing_address = str(request.form['issuing_address']) more_coins = request.form['more_coins'] coin_recipients = str(request.form['coin_recipients'] ) #DISCREPANCY, SHOULD BE ARRAY for multiple othermeta = 'COIN NAME HERE' fee = 0.00005 print coin_recipients print more_coins print issuing_address print fee print othermeta tx = transactions.create_issuing_tx_unsigned(issuing_address, coin_recipients, fee, more_coins, othermeta) #return 'a' return str(tx)
def issuenewcoins_clientside(): jsoninput=json.loads(request.data) issuing_address=str(jsoninput['issuing_address']) more_coins=jsoninput['more_coins'] coin_recipients=str(jsoninput['coin_recipients']) othermeta='COIN NAME HERE' fee=0.00005 print coin_recipients print more_coins print issuing_address print fee print othermeta tx=transactions.create_issuing_tx_unsigned(issuing_address, coin_recipients, fee, more_coins,othermeta) jsonresponse={} jsonresponse['transaction_hash']=tx jsonresponse=json.dumps(jsonresponse) response=make_response(str(jsonresponse), 200) response.headers['Content-Type'] = 'application/json' response.headers['Access-Control-Allow-Origin']= '*' return response
def issuenewcoins_clientside(): jsoninput = json.loads(request.data) issuing_address = str(jsoninput['issuing_address']) more_coins = jsoninput['more_coins'] coin_recipients = str(jsoninput['coin_recipients']) othermeta = 'COIN NAME HERE' fee = 0.00005 print coin_recipients print more_coins print issuing_address print fee print othermeta tx = transactions.create_issuing_tx_unsigned(issuing_address, coin_recipients, fee, more_coins, othermeta) jsonresponse = {} jsonresponse['transaction_hash'] = tx jsonresponse = json.dumps(jsonresponse) response = make_response(str(jsonresponse), 200) response.headers['Content-Type'] = 'application/json' response.headers['Access-Control-Allow-Origin'] = '*' return response