AccountDelete
An AccountDelete transaction deletes an account and any objects it owns in Xahau, if possible, sending the account's remaining XAH to a specified destination account.
[Source]
Added by the DeletableAccounts amendment
The DeletableAccounts amendment is not enabled at this time.
Example
Field | JSON Type | [Internal Type][] | Description |
---|---|---|---|
| String - [Address][] | AccountID | The address of an account to receive any leftover XAH after deleting the sending account. Must be a funded account in the ledger, and must not be the sending account. |
| Number | UInt32 | (Optional) Arbitrary destination tag that identifies a hosted recipient or other information for the recipient of the deleted account's leftover XAH. |
Special Transaction Cost
As an additional deterrent against ledger spam, the AccountDelete transaction requires a much higher than usual transaction cost: instead of the standard minimum of 0.00001 XAH, AccountDelete must destroy at least the owner reserve amount, currently 2 XRP. This discourages excessive creation of new accounts because the reserve requirement cannot be fully recouped by deleting the account.
The transaction cost always applies when a transaction is included in a validated ledger, even if the transaction fails to delete the account. (See Error Cases.) To greatly reduce the chances of paying the high transaction cost if the account cannot be deleted, submit the transaction with fail_hard
enabled.
Error Cases
Besides errors that can occur for all transactions, AccountDelete transactions can result in the following transaction result codes:
Error Code | Description |
---|---|
| Occurs if the DeletableAccounts amendment is not enabled. |
| Occurs if the |
| Occurs if the |
| Occurs if the |
| Occurs if the |
| Occurs if the sender's |
| Occurs if the account to be deleted is connected to objects that cannot be deleted in the ledger. (This includes objects created by other accounts, such as escrows and for example NFT's minted, even if owned by another account.) |
| Occurs if the sending account is linked to more than 1000 objects in the ledger. The transaction could succeed on retry if some of those objects were deleted separately first. |
Last updated