Sep38Asset
public struct Sep38Asset : Decodable, Sendable
Asset information from the SEP-38 GET /info endpoint.
This structure describes an asset supported by the anchor for quotes, including the available delivery methods and supported country codes for the asset.
-
The asset identifier in SEP-38 Asset Identification Format.
Example: “stellar:USDC:GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5” or “iso4217:BRL”
Declaration
Swift
public let asset: String -
Available methods for delivering this asset to the anchor when selling.
Optional field that is present only if the asset can be sold to the anchor.
Declaration
Swift
public let sellDeliveryMethods: [Sep38SellDeliveryMethod]? -
Available methods for receiving this asset from the anchor when buying.
Optional field that is present only if the asset can be bought from the anchor.
Declaration
Swift
public let buyDeliveryMethods: [Sep38BuyDeliveryMethod]? -
ISO 3166-1 alpha-3 country codes where this asset is available.
Optional field indicating geographic restrictions for this asset.
Declaration
Swift
public let countryCodes: [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