ReserveResponse

public struct ReserveResponse : Decodable, Sendable

Represents a reserve asset in a liquidity pool. Each liquidity pool maintains reserves of two assets that are used for trading. See Stellar developer docs

  • The amount of the asset held in reserve.

    Declaration

    Swift

    public let amount: String
  • The asset held in this reserve.

    Declaration

    Swift

    public let asset: Asset
  • 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