OfferAssetResponse
public struct OfferAssetResponse : Decodable, Sendable
Represents an asset in an offer (either the selling or buying asset). See Stellar developer docs
-
The asset type. Possible values: native, credit_alphanum4, credit_alphanum12. See also Constants.AssetType.
Declaration
Swift
public let assetType: String -
The asset code, e.g. USD or BTC. Nil if assetType is “native”.
Declaration
Swift
public let assetCode: String? -
The account ID of the asset issuer. Nil if assetType is “native”.
Declaration
Swift
public let assetIssuer: String? -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash