Sep38BuyAsset
public struct Sep38BuyAsset : Decodable, Sendable
Asset information with price from the SEP-38 GET /prices endpoint.
This structure represents an asset that can be purchased along with its indicative price and decimal precision. The price is not guaranteed and is for informational purposes only.
-
The asset identifier in SEP-38 Asset Identification Format.
Example: “stellar:USDC:GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5”
Declaration
Swift
public let asset: String -
The indicative price for this asset.
Represented as a decimal string showing units of this asset per unit of the sell asset.
Declaration
Swift
public let price: String -
The number of decimal places for this asset.
Used for proper formatting and precision when displaying amounts.
Declaration
Swift
public let decimals: Int -
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