Asset
public struct Asset : Equatable
The Steem asset type.
-
Asset symbol type, containing the symbol name and precision.
See moreDeclaration
Swift
public enum Symbol : Equatable -
The asset symbol.
Declaration
Swift
public let symbol: Symbol -
Create a new
Asset.Declaration
Swift
public init(_ value: Double, _ symbol: Symbol = .steem)Parameters
valueAmount of tokens.
symbolToken symbol.
-
Create a new
Assetfrom a string representation.Declaration
Swift
public init?(_ value: String)Parameters
valueString to parse into asset, e.g.
1.000 STEEM.
-
The amount of the token, based on symbol precision.
Declaration
Swift
public var resolvedAmount: Double { get }
-
The amount of the token and its symbol.
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Declaration
Swift
public func binaryEncode(to encoder: SteemEncoder) throws
View on GitHub
Asset Structure Reference