示例#1
0
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)
示例#2
0
文件: main.py 项目: fkrs/githubber
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)
示例#3
0
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
示例#4
0
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