AssetResponse
public struct AssetResponse : Decodable, Sendable
Represents an asset response. See Stellar developer docs
-
A list of links related to this asset.
Declaration
Swift
public var links: AssetLinksResponse -
The type of this asset. Possible values: (native, credit_alphanum4, credit_alphanum12). See Constants.AssetType.
Declaration
Swift
public var assetType: String -
The code of this asset. E.g. BTC. Nil if assetType is “native”.
Declaration
Swift
public var assetCode: String? -
The issuer of this asset. Nil if assetType is “native”
Declaration
Swift
public var assetIssuer: String? -
Statistics about the number of accounts holding this asset by authorization status.
Declaration
Swift
public var accounts: AssetAccounts -
The number of claimable balances holding this asset.
Declaration
Swift
public var numClaimableBalances: Int -
Statistics about the total amounts held by accounts by authorization status.
Declaration
Swift
public var balances: AssetBalances -
The total amount of this asset held in claimable balances.
Declaration
Swift
public var claimableBalancesAmount: Decimal -
The flags on this asset of types: auth_required, auth_revocable, auth_immutable.
Declaration
Swift
public var flags: AccountFlagsResponse -
A paging token suitable for use as the cursor parameter to assets collection resources.
Declaration
Swift
public var pagingToken: String -
The number of liquidity pools that include this asset.
Declaration
Swift
public var numLiquidityPools: Int -
The total amount of this asset held in liquidity pools.
Declaration
Swift
public var liquidityPoolsAmount: String -
The number of Soroban smart contracts that hold this asset. Optional, only present for Soroban-enabled networks.
Declaration
Swift
public var numContracts: Int? -
The total amount of this asset held in Soroban smart contracts. Optional, only present for Soroban-enabled networks.
Declaration
Swift
public var contractsAmount: 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