From 2c61503c9f343c8f808b4d8c8272463f847238c9 Mon Sep 17 00:00:00 2001 From: kafka2000 Date: Fri, 7 Jan 2022 08:05:22 +0300 Subject: [PATCH] Update the RPC transaction python API example to have correct dict key --- 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'])