Update an account
A transaction that updates the properties of an existing account. The network will store the latest updates on the account. If you would like to retrieve the state of an account in the past, you can query a mirror node.
Account Properties
Account PropertiesTransaction Fees
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.
Transaction Signing Requirements
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_SIGNATURE
error.
Maximum Auto-Associations and Fees
Accounts have a property, maxAutoAssociations
, and the property's value determines the maximum number of automatic token associations allowed.
Property Value | Description |
---|---|
| Automatic token associations or are not allowed, and the account must be manually associated with a token. This also applies if the value is less than or equal to |
| The number of automatic token associations an account can have is unlimited. |
| If the value is a positive number (number greater than 0), the number of automatic token associations an account can have is limited to that number. |
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.
Reference: HIP-904
Methods
Method | Type | Requirement |
---|---|---|
| AccountId | Required |
| Key | Optional |
| Boolean | Optional |
| int | Optional |
| String | Optional |
| Duration | Optional |
| AccountId | Optional |
| long | Optional |
| boolean | Optional |
| Instant | Disabled |
Get transaction values
Return the properties of an account create transaction.
Method | Type | Description |
---|---|---|
| Key | Returns the public key on the account |
| Hbar | Returns the initial balance of the account |
| boolean | Returns whether the receiver signature is required or not |
| Instant | Returns the expiration time |
| String | Returns the account memo |
| boolean | Returns whether or not the account is declining rewards |
| long | Returns the node ID the account is staked to |
| AccountId | Returns the account ID the node is staked to |
| Duration | Returns the auto renew period on the account |
Last updated