1+ """
2+ hiero_sdk_python.transaction.transaction
3+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4+
5+ This module provides the `TokenDissociateTransaction` class, which models
6+ a Hedera network transaction to dissociate one or more tokens from an account.
7+
8+ Classes:
9+ TokenDissociateTransaction
10+ Builds, signs, and executes a token dissociate transaction. Inherits
11+ from the base `Transaction` class and encapsulates all necessary
12+ fields and methods to perform a token dissociation on Hedera.
13+ """
114from hiero_sdk_python .transaction .transaction import Transaction
215from hiero_sdk_python .hapi .services import token_dissociate_pb2
316from hiero_sdk_python .channels import _Channel
@@ -25,11 +38,13 @@ def __init__(self, account_id=None, token_ids=None):
2538 self ._default_transaction_fee = 500_000_000
2639
2740 def set_account_id (self , account_id ):
41+ """Specify the account for token dissociation."""
2842 self ._require_not_frozen ()
2943 self .account_id = account_id
3044 return self
3145
3246 def add_token_id (self , token_id ):
47+ """Add a token to dissociate."""
3348 self ._require_not_frozen ()
3449 self .token_ids .append (token_id )
3550 return self
@@ -39,7 +54,7 @@ def build_transaction_body(self):
3954 Builds and returns the protobuf transaction body for token dissociation.
4055
4156 Returns:
42- TransactionBody: The protobuf transaction body containing the token dissociation details.
57+ TransactionBody: The protobuf transaction body with token dissociate details.
4358
4459 Raises:
4560 ValueError: If account ID or token IDs are not set.
@@ -61,4 +76,4 @@ def _get_method(self, channel: _Channel) -> _Method:
6176 return _Method (
6277 transaction_func = channel .token .dissociateTokens ,
6378 query_func = None
64- )
79+ )
0 commit comments