A transaction that deletes an existing account from the Hedera network. Before deleting an account, the existing HBAR must be transferred to another account. Submitting a transaction to delete an account without assigning a beneficiary viaDocumentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-mintlify-enhance-hollow-account-docs-97196.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
setTransferAccountId() will result in a ACCOUNT_ID_DOES_NOT_EXIST error. 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.
Note: The
setTransferAccountId() method is required, regardless of whether the account has a zero balance.- Please see the transaction and query fees table for the base transaction fee.
- Please use the Hedera fee estimator to estimate your transaction fee cost.
- The account that is being deleted is required to sign the transaction.
Methods
| Method | Type | Description | Requirement |
|---|---|---|---|
setAccountId(<accountId>) | AccountId | The ID of the account to delete. | Required |
setTransferAccountId(<transferAccountId>) | AccountId | The ID of the account to transfer the remaining funds to. | Required |
Get transaction values
| Method | Type | Description |
|---|---|---|
getAccountId(<accountId>) | AccountId | The account to delete |
getTransferAccountId(<transferAccountId>) | AccountId | The account to transfer the remaining funds to |