From 8e8eb9990e8a2882460d5cf10b556dcbd643fecd Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Sun, 16 Aug 2020 19:02:45 +0100 Subject: [PATCH] [Add] return tx_id at the end of the transaction --- bitsv/network/services/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitsv/network/services/network.py b/bitsv/network/services/network.py index 81d1137..cdd4fc6 100644 --- a/bitsv/network/services/network.py +++ b/bitsv/network/services/network.py @@ -163,5 +163,5 @@ def broadcast_tx(self, tx_hex): # pragma: no cover :raises ConnectionError: If all API services fail. """ call_list = [api.send_transaction for api in self.list_of_apis] - self.invoke_api_call(call_list, tx_hex) - return + tx_id = self.invoke_api_call(call_list, tx_hex) + return tx_id