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
Copy file name to clipboardExpand all lines: README_types.md
+30-8Lines changed: 30 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,18 +162,41 @@ if __name__ == "__main__":
162
162
account = AccountId(0, 0, 200)
163
163
query_hbar_balance(account)
164
164
165
+
def_query_hbar_balance function takes account as an argument, which is of custom type AccountId, then the function returns type None. It returns None because there is no return statement in the function, and it instead prints.
166
+
167
+
### Example 2
168
+
from dataclasses import dataclass
169
+
from hiero_sdk import AccountId
170
+
from hiero_sdk import CryptoGetAccountBalanceQuery
0 commit comments