ClaimantPredicateResponse

public final class ClaimantPredicateResponse : Decodable, Sendable

Represents a claimant predicate that defines conditions for claiming a claimable balance. Predicates can be unconditional or time-based, and can be combined using logical operators. See Stellar developer docs

  • Indicates whether the claimable balance can be claimed without any conditions.

    Declaration

    Swift

    public let unconditional: Bool?
  • and

    A list of predicates that must all be satisfied (logical AND).

    Declaration

    Swift

    public let and: [ClaimantPredicateResponse]?
  • or

    A list of predicates where at least one must be satisfied (logical OR).

    Declaration

    Swift

    public let or: [ClaimantPredicateResponse]?
  • not

    A predicate that must not be satisfied (logical NOT).

    Declaration

    Swift

    public let not: ClaimantPredicateResponse?
  • An ISO 8601 formatted timestamp before which the claimable balance can be claimed.

    Declaration

    Swift

    public let beforeAbsoluteTime: String?
  • A relative time in seconds since the close time of the ledger in which the claimable balance was created.

    Declaration

    Swift

    public let beforeRelativeTime: String?
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data

  • Prints a human-readable representation of the predicate structure to the console.

    Declaration

    Swift

    public func printPredicate()