TzKTBalance

public struct TzKTBalance : Codable

Model mapping to the Balance object returned from the new TzKT API, resulting from the merge of BCD and TzKT

  • Declaration

    Swift

    public static let exceptionListNFT: [String]
  • String containing the RPC respresetnation of the balance of the given token

    Declaration

    Swift

    public let balance: String
  • Details about the Token

    Declaration

    Swift

    public let token: TzKTBalanceToken
  • The block level where the token was first seen

    Declaration

    Swift

    public let firstLevel: Decimal
  • The block level where the token was last seen

    Declaration

    Swift

    public let lastLevel: Decimal
  • Helper to convert the RPC token balance to a TokenAmount object

    Declaration

    Swift

    public var tokenAmount: TokenAmount { get }
  • Basic check to see if token is an NFT or not. May not be 100% successful, needs research

    Declaration

    Swift

    public func isNFT() -> Bool
  • Declaration

    Swift

    public func isOnNFTExceptionList() -> Bool