ChainProvider
public struct ChainProvider : Codable, Identifiable, Hashable, TokenContractsProtocol
ChainProvider the object that provides chain related configuration aspects of the Proton objects
-
Id is the chainId
Declaration
Swift
public var id: String { get } -
The chainId associated with the ChainProvider
Declaration
Swift
public let chainId: String -
The base url to the public Proton chain rpc provider
Declaration
Swift
public let chainUrl: String -
The base url to the public Proton chain Hyperion history provider
Declaration
Swift
public let hyperionHistoryUrl: String -
The url to the icon image for the Proton chain. (Mainnet/Testnet)
Declaration
Swift
public let iconUrl: String -
The human readable name of the Proton chain. (Mainnet/Testnet)
Declaration
Swift
public let name: String -
The system token symbol for the chain: XPR
Declaration
Swift
public let systemTokenSymbol: String -
The system token contract for the chain: eosio.token
Declaration
Swift
public let systemTokenContract: String -
Whether or not the chainProvider is for testnet
Declaration
Swift
public let isTestnet: Bool -
The api url for updating the account avatar
Declaration
Swift
public let updateAccountAvatarPath: String -
The api url for updating the account name
Declaration
Swift
public let updateAccountNamePath: String -
The api url for fetching exhange rates
Declaration
Swift
public let exchangeRatePath: String -
The default explorer url
Declaration
Swift
public let explorerUrl: String -
TokenContracts associated with this chainProvider
Declaration
Swift
public var tokenContracts: [TokenContract] { get }
ChainProvider Structure Reference