def transfer_transaction_serverside(): jsoninput = json.loads(request.data) fromaddr = str(jsoninput['public_address']) dest = str(jsoninput['recipient']) fee = float(jsoninput['fee']) private_key = str(jsoninput['private_key']) coloramt = int(jsoninput['coloramt']) inputs = str(jsoninput['inputs']) inputs = ast.literal_eval(inputs) inputcoloramt = int(jsoninput['inputcoloramt']) print fromaddr print dest print fee print private_key print coloramt print inputs print inputcoloramt othermeta = '' result = transactions.create_transfer_tx(fromaddr, dest, fee, private_key, coloramt, inputs, inputcoloramt, othermeta) response = make_response(str(result), 200) response.headers['Content-Type'] = 'application/json' response.headers['Access-Control-Allow-Origin'] = '*' return response
def transfer_transaction_serverside(): jsoninput=json.loads(request.data) fromaddr=str(jsoninput['public_address']) dest=str(jsoninput['recipient']) fee=float(jsoninput['fee']) private_key=str(jsoninput['private_key']) coloramt=int(jsoninput['coloramt']) inputs=str(jsoninput['inputs']) inputs=ast.literal_eval(inputs) inputcoloramt=int(jsoninput['inputcoloramt']) print fromaddr print dest print fee print private_key print coloramt print inputs print inputcoloramt othermeta='' result= transactions.create_transfer_tx(fromaddr, dest, fee, private_key, coloramt, inputs, inputcoloramt, othermeta) response=make_response(str(result), 200) response.headers['Content-Type'] = 'application/json' response.headers['Access-Control-Allow-Origin']= '*' return response
def transfer_transaction_serverside(): fromaddr=str(request.form['public_address']) dest=str(request.form['recipient']) fee=float(request.form['fee']) #DOESNT MATCH DOCS private_key=str(request.form['private_key']) coloramt=int(request.form['coloramt']) #inputs=request.form['inputs'] inputs=str(request.form['inputs']) inputs=ast.literal_eval(inputs) inputcoloramt=int(request.form['inputcoloramt']) print fromaddr print dest print fee print private_key print coloramt print inputs print inputcoloramt othermeta='' response= transactions.create_transfer_tx(fromaddr, dest, fee, private_key, coloramt, inputs, inputcoloramt, othermeta) return str(response)
def transfer_transaction_serverside(): fromaddr = str(request.form['public_address']) dest = str(request.form['recipient']) fee = float(request.form['fee']) #DOESNT MATCH DOCS private_key = str(request.form['private_key']) coloramt = int(request.form['coloramt']) #inputs=request.form['inputs'] inputs = str(request.form['inputs']) inputs = ast.literal_eval(inputs) inputcoloramt = int(request.form['inputcoloramt']) print fromaddr print dest print fee print private_key print coloramt print inputs print inputcoloramt othermeta = '' response = transactions.create_transfer_tx(fromaddr, dest, fee, private_key, coloramt, inputs, inputcoloramt, othermeta) return str(response)