ClaimClaimableBalanceOperation
public class ClaimClaimableBalanceOperation : Operation, @unchecked Sendable
Represents a claim claimable balance operation. Claimable Balances can be used to “split up” a payment into two parts, which allows the sending to only depend on the sending account, and the receipt to only depend on the receiving account. See Stellar developer docs.
-
The claimable balance id to be claimed.
An operation read from XDR reports the 72-character form Horizon serves: the four-byte big-endian union discriminant ahead of the 32-byte hash. An operation built from a string reports that string as given.
Declaration
Swift
public let balanceId: String -
Creates a new ClaimClaimableBalanceOperation object.
Declaration
Swift
public init(balanceId: String, sourceAccountId: String? = nil)Parameters
balanceIdThe claimable balance id to be claimed.
sourceAccountIdThe source account of the operation. Optional. Defaults to the transaction’s source account.
-
Creates a new ClaimClaimableBalanceOperation object from the given ClaimClaimableBalanceOpXDR object.
Declaration
Swift
public init(fromXDR: ClaimClaimableBalanceOpXDR, sourceAccountId: String?) throwsParameters
fromXDRthe ClaimClaimableBalanceOpXDR object to be used to create a new ClaimClaimableBalanceOperation object.
sourceAccountId(optional) source account Id, must be valid, otherwise it will be ignored.
View on GitHub
Install in Dash