Account Properties
- The sender pays for the token association fee and the rent for the first auto-renewal period.
- Please see the transaction and query fees table for the base transaction fee.
- Please use the Hedera fee estimator to estimate the cost of your transaction fee.
- The account key(s) are required to sign the transaction.
- If you are updating the keys on the account, the OLD KEY and NEW KEY must sign.
- If either is a key list, the key list keys are all required to sign.
- If either is a threshold key, the threshold value is required to sign.
- If you do not have the required signatures, the network will throw an
INVALID_SIGNATUREerror.
Account Hooks (HIP-1195)You can add or remove Hiero Hooks on an existing account using
addHookToCreate() and addHookToDelete(). Deletions are processed before creations, enabling atomic hook replacement within a single transaction. A hook can only be deleted when it has zero storage slots. See Create and Manage Hooks for full details.Maximum Auto-Associations and Fees
Accounts have a property,maxAutoAssociations, and the property’s value determines the maximum number of automatic token associations allowed.
The sender pays the
maxAutoAssociations fee and the rent for the first auto-renewal period for the association. This is in addition to the typical transfer fees. This ensures the receiver can receive tokens without association and makes it a smoother transfer process.Methods
Add hooks to an existing account
This example adds two account allowance hooks to an existing account. The hook contract must be deployed first viaContractCreateTransaction.
Delete hooks from an existing account
This example removes hooks by their IDs. A hook must have zero storage slots before it can be deleted — clear storage first usingHookStoreTransaction.