From 2c7858dd340a5c9a95e267c1a13a68f71620f229 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Mon, 21 Feb 2022 21:36:26 -0500 Subject: [PATCH] fix: change addresses to address --- code/rpc_transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/rpc_transaction.py b/code/rpc_transaction.py index f3686635..6330c174 100644 --- a/code/rpc_transaction.py +++ b/code/rpc_transaction.py @@ -13,4 +13,4 @@ decoded_tx = p.decoderawtransaction(raw_tx) # Retrieve each of the outputs from the transaction for output in decoded_tx['vout']: - print(output['scriptPubKey']['addresses'], output['value']) + print(output['scriptPubKey']['address'], output['value'])