ClaimableBalanceResponse

public struct ClaimableBalanceResponse : Decodable, Sendable

Represents a claimable balance response from the Horizon API. Claimable balances are held on the ledger until they are claimed by authorized claimants or until the conditions for claiming them expire. See Stellar developer docs

  • A list of links related to this claimable balance.

    Declaration

    Swift

    public let links: ClaimableBalanceLinksResponse
  • Unique identifier for this claimable balance.

    Declaration

    Swift

    public let balanceId: String
  • The asset available to be claimed.

    Declaration

    Swift

    public let asset: Asset
  • The amount of the asset that can be claimed.

    Declaration

    Swift

    public let amount: String
  • The account ID of the sponsor who is paying the reserves for this claimable balance.

    Declaration

    Swift

    public let sponsor: String
  • The sequence number of the ledger in which this claimable balance was last modified.

    Declaration

    Swift

    public let lastModifiedLedger: Int
  • An ISO 8601 formatted string of when this claimable balance was last modified.

    Declaration

    Swift

    public let lastModifiedTime: String?
  • Paging token suitable for use as a cursor parameter.

    Declaration

    Swift

    public let pagingToken: String
  • The list of entries which could claim this balance and their conditions for claiming.

    Declaration

    Swift

    public let claimants: [ClaimantResponse]
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data