Class TokenAssociateTransaction


public class TokenAssociateTransaction extends Transaction<TokenAssociateTransaction>
Associate a Hedera Token Service (HTS) token and an account. An association MUST exist between an account and a token before that account may transfer or receive that token.
If the identified account is not found, the transaction SHALL return `INVALID_ACCOUNT_ID`.
If the identified account has been deleted, the transaction SHALL return `ACCOUNT_DELETED`.
If any of the identified tokens is not found, the transaction SHALL return `INVALID_TOKEN_REF`.
If any of the identified tokens has been deleted, the transaction SHALL return `TOKEN_WAS_DELETED`.
If an association already exists for any of the identified tokens, the transaction SHALL return `TOKEN_ALREADY_ASSOCIATED_TO_ACCOUNT`.
The identified account MUST sign this transaction. ### Block Stream Effects None