|
|
|
@ -25,4 +25,7 @@ resp = requests.get('https://blockchain.info/unspent?active=%s' % address)
|
|
|
|
|
utxo_set = json.loads(resp.text)["unspent_outputs"]
|
|
|
|
|
|
|
|
|
|
for utxo in utxo_set:
|
|
|
|
|
print "%s:%d - %ld Satoshis" % (utxo['tx_hash'], utxo['tx_output_n'], utxo['value'])
|
|
|
|
|
print("%s:%d - %ld Satoshis" % (utxo['tx_hash'], utxo['tx_output_n'],
|
|
|
|
|
utxo['value']))
|
|
|
|
|
# Or try...
|
|
|
|
|
# print("{tx_hash}:{tx_output_n} - {value} Satoshis".format(**utxo))
|
|
|
|
|