Asset

public struct Asset : Equatable

The Steem asset type.

  • Asset symbol type, containing the symbol name and precision.

    See more

    Declaration

    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

    value

    Amount of tokens.

    symbol

    Token symbol.

  • Create a new Asset from a string representation.

    Declaration

    Swift

    public init?(_ value: String)

    Parameters

    value

    String 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 }