Producer
public struct Producer : Codable, Identifiable, Hashable, ChainProviderProtocol, AvatarProtocol
A Producer is basically an Account object, but with some extra info.
-
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 -
Whether or no the producer is active
Declaration
Swift
public var isActive: Bool -
Total votes accumulated by producer
Declaration
Swift
public var totalVotes: Float64 -
The url string which makes up base url for fetching bp.json,chains.json
Declaration
Swift
public var url: String -
The meta info returned by bp.json
Declaration
Swift
public var org: ProducerOrg? -
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 }
Producer Structure Reference