Example #1
0
def getrawtransaction(transaction_hash=None):
  transaction_hash=transaction_hash.encode('ascii')
  response=bitsource.tx_lookup(str(transaction_hash))
  #print response
  response=make_response(str(response), 200)
  response.headers['Access-Control-Allow-Origin']= '*'
  return response
Example #2
0
def getrawtransaction(transaction_hash=None):
    transaction_hash = transaction_hash.encode('ascii')
    response = bitsource.tx_lookup(str(transaction_hash))
    #print response
    response = make_response(str(response), 200)
    response.headers['Access-Control-Allow-Origin'] = '*'
    return response
Example #3
0
def getrawtransaction(transaction_hash=None):
    transaction_hash = transaction_hash.encode('ascii')
    response = bitsource.tx_lookup(str(transaction_hash))
    jsonresponse = {}
    jsonresponse['raw_transaction'] = response
    jsonresponse = json.dumps(jsonresponse)
    response = make_response(str(jsonresponse), 200)
    response.headers['Content-Type'] = 'application/json'
    response.headers['Access-Control-Allow-Origin'] = '*'
    return response
Example #4
0
def getrawtransaction(transaction_hash=None):
  transaction_hash=transaction_hash.encode('ascii')
  response=bitsource.tx_lookup(str(transaction_hash))
  jsonresponse={}
  jsonresponse['raw_transaction']=response
  jsonresponse=json.dumps(jsonresponse)
  response=make_response(str(jsonresponse), 200)
  response.headers['Content-Type'] = 'application/json'
  response.headers['Access-Control-Allow-Origin']= '*'
  return response