33"""
44
55import traceback
6- from typing import List , Optional
6+ from typing import List , Optional , Union
77
88from hiero_sdk_python .account .account_id import AccountId
99from hiero_sdk_python .channels import _Channel
@@ -96,7 +96,7 @@ def _get_method(self, channel: _Channel) -> _Method:
9696 """
9797 return _Method (transaction_func = None , query_func = channel .crypto .getAccountRecords )
9898
99- def execute (self , client : Client ) -> List [TransactionRecord ]:
99+ def execute (self , client : Client , timeout : Optional [ Union [ int , float ]] = None ) -> List [TransactionRecord ]:
100100 """
101101 Executes the account records query.
102102
@@ -108,6 +108,7 @@ def execute(self, client: Client) -> List[TransactionRecord]:
108108
109109 Args:
110110 client (Client): The client instance to use for execution
111+ timeout (Optional[Union[int, float]]): The total execution timeout (in seconds) for this execution.
111112
112113 Returns:
113114 List[TransactionRecord]: The account records from the network
@@ -118,7 +119,7 @@ def execute(self, client: Client) -> List[TransactionRecord]:
118119 ReceiptStatusError: If the query fails with a receipt status error
119120 """
120121 self ._before_execute (client )
121- response = self ._execute (client )
122+ response = self ._execute (client , timeout )
122123
123124 records = []
124125 for record in response .cryptoGetAccountRecords .records :
0 commit comments