1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-22 08:08:11 +00:00

fix: change addresses to address

This commit is contained in:
Christian Chiarulli 2022-02-21 21:36:26 -05:00
parent 77b91b1949
commit 2c7858dd34

View File

@ -13,4 +13,4 @@ decoded_tx = p.decoderawtransaction(raw_tx)
# Retrieve each of the outputs from the transaction # Retrieve each of the outputs from the transaction
for output in decoded_tx['vout']: for output in decoded_tx['vout']:
print(output['scriptPubKey']['addresses'], output['value']) print(output['scriptPubKey']['address'], output['value'])