OfferResponse

public struct OfferResponse : Decodable, Sendable

Represents a offer response. See Stellar developer docs

  • A list of links related to this offer.

    Declaration

    Swift

    public let links: OfferLinksResponse
  • id

    Unique identifier for this offer.

    Declaration

    Swift

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

    Declaration

    Swift

    public let pagingToken: String
  • The seller of this offer.

    Declaration

    Swift

    public let seller: String
  • The Asset this offer wants to sell.

    Declaration

    Swift

    public let selling: OfferAssetResponse
  • The Asset this offer wants to buy.

    Declaration

    Swift

    public let buying: OfferAssetResponse
  • The amount of selling the account making this offer is willing to sell.

    Declaration

    Swift

    public let amount: String
  • An object of a number numerator and number denominator that represent the buy and sell price of the currencies on offer.

    Declaration

    Swift

    public let priceR: OfferPriceResponse
  • How many units of buying it takes to get 1 unit of selling. A number representing the decimal form of priceR.

    Declaration

    Swift

    public let price: String
  • The account ID of the sponsor who is paying the reserves for this offer. Optional, only present if the offer is sponsored.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public let lastModifiedTime: String?
  • 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