AccountMergeOperation

public class AccountMergeOperation : Operation, @unchecked Sendable

Represents an account merge operation. Transfers the native balance (the amount of XLM an account holds) to another account and removes the source account from the ledger. See Stellar developer docs

  • The account that receives the remaining XLM balance of the source account.

    Declaration

    Swift

    public let destinationAccountId: String
  • Creates a new AccountMergeOperation object.

    Declaration

    Swift

    public init(destinationAccountId: String, sourceAccountId: String?) throws

    Parameters

    destinationAccountId

    The account that receives the remaining XLM balance of the source account.

    sourceAccountId

    (optional) source account Id, must be valid, otherwise it will be ignored.