You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Why check?** Always inspect `receipt.status` returned by `execute(client)`. The `execute` call confirms the network received your transaction; the receipt contains the final processing result. Your Python code will not automatically raise for Hedera-level failures — you must check the receipt to detect them.
-**Important:** These are examples only — many other ResponseCodes exist. Always consult `src/hiero_sdk_python/response_code.py` for the full list and handle codes relevant to your workflow.
105
+
106
+
```python
107
+
# Example: check and handle failure explicitly
108
+
receipt = transaction.execute(client)
109
+
110
+
if receipt.status != ResponseCode.SUCCESS:
111
+
# react to failure: log, retry, or surface to caller
112
+
print(f"Transaction processed with failure: {ResponseCode(receipt.status).name}")
113
+
# e.g. inspect receipt fields for more info, then handle appropriately
0 commit comments