Contact

public struct Contact : Codable, Identifiable, Hashable, ChainProviderProtocol, AvatarProtocol

A Contact is a lightweight Account object which represents an Account that the activeAccount has interacted with via trasnfers, etc

  • id

    This is used as the primary key for storing the contact

    Declaration

    Swift

    public var id: String { get }
  • The chainId associated with the account

    Declaration

    Swift

    public var chainId: String
  • The Name of the account. You can get the string value via name.stringValue

    Declaration

    Swift

    public var name: Name
  • Is the account KYC verified

    Declaration

    Swift

    public var verified: Bool
  • The user defined name

    Declaration

    Swift

    public var userDefinedName: String
  • The user modified Avatar string

    Declaration

    Swift

    public var base64Avatar: String
  • The last known date of transfer

    Declaration

    Swift

    public var lastTransferDate: Date
  • ChainProvider associated with the Account

    Declaration

    Swift

    public var chainProvider: ChainProvider? { get }
  • Return name if not empty, else use the account name

    Declaration

    Swift

    public var userDefinedNameOrName: String { get }
  • Name formated with leading @

    Declaration

    Swift

    public var nameWithAmpersand: String { get }