Interface AccountDelete

All Superinterfaces:
Transaction
All Known Implementing Classes:
ImmutableAccountDelete

@Immutable public interface AccountDelete extends Transaction
An AccountDelete transaction deletes an account and any objects it owns in the XRP Ledger, if possible, sending the account's remaining XRP to a specified destination account.
  • Method Details

    • builder

      Construct a builder for this class.
      Returns:
      An ImmutableAccountDelete.Builder.
    • flags

      @Default default TransactionFlags flags()
      Set of TransactionFlagss for this AccountDelete, which only allows the tfFullyCanonicalSig flag, which is deprecated.

      The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for proper signature computation in rippled.

      Returns:
      Always TransactionFlags.EMPTY.
    • destination

      Address destination()
      The Address of an account to receive any leftover XRP after deleting the sending account. Must be a funded account in the ledger, and must not be the sending account.
      Returns:
      The Address of the leftover XRP destination account.
    • destinationTag

      Optional<com.google.common.primitives.UnsignedInteger> destinationTag()
      Arbitrary destination tag that identifies a hosted recipient or other information for the recipient of the deleted account's leftover XRP.
      Returns:
      An Optional of type UnsignedInteger representing the tag of the destination account.
    • credentialIds

      List<Hash256> credentialIds()
      Set of Credentials to authorize a deposit made by this transaction. Each member of the array must be the ledger entry ID of a Credential entry in the ledger.
      Returns:
      A list of type Hash256.
    • validateCredentialIdsLength

      @Check default void validateCredentialIdsLength()
      Validate credentialIds() has less than or equal to 8 credentials.
    • validateUniqueCredentialIds

      @Check default void validateUniqueCredentialIds()
      Validate credentialIds() are unique.