Delete an account
A transaction that deletes an existing account from the Hedera network. Before deleting an account, the existing hbars must be transferred to another account. If you fail to transfer the hbars, you will receive an error message "setTransferAccountId() required." Transfers cannot be made into a deleted account. A record of the deleted account will remain in the ledger until it expires.The expiration of a deleted account can be extended. The account that is being deleted is required to sign the transaction.
Transaction Fees
Please see the transaction and query fees table for base transaction fee
Please use the Hedera fee estimator to estimate your transaction fee cost
Transaction Signing Requirements
The account the is being deleted is required to sign the transaction
Constructor | Description |
---|---|
| Initializes the AccountDeleteTransaction object |
Methods
Method | Type | Description | Requirement |
---|---|---|---|
| AccountId | The ID of the account to delete. | Required |
| AccountId | The ID of the account to transfer the remaining funds to. | Optional |
Get transaction values
Method | Type | Description |
---|---|---|
| AccountId | The account to delete |
| AccountId | The account to transfer the remaining funds to |
Last updated