ChainID
enum ChainID : CaseIterable, Hashable, Codable
Identification the enviroment of flow
-
Unknow enviroment as a fallback cause
Declaration
Swift
case unknown
-
Mainnet enviroment Default gRPC node is
access.mainnet.nodes.onflow.org:9000
HTTP nodehttps://rest-mainnet.onflow.org/
Declaration
Swift
case mainnet
-
Testnet enviroment Default gRPC node is
access.devnet.nodes.onflow.org:9000
HTTP nodehttps://rest-mainnet.onflow.org/
Declaration
Swift
case testnet
-
Canarynet enviroment Default node is
access.canary.nodes.onflow.org:9000
Declaration
Swift
case canarynet
-
Canarynet enviroment Default node is
access.crescendo.nodes.onflow.org:9000
HTTP nodehttps://rest-crescendo.onflow.org/
Declaration
Swift
case crescendo
-
Previewnet enviroment Default node is
access-previewnet.onflow.org/:9000
HTTP nodehttps://rest-previewnet.onflow.org/
Declaration
Swift
case previewnet
-
Emulator enviroment Default node is
127.0.0.1:9000
Declaration
Swift
case emulator
-
Custom chainID with custom
Endpoint
-
List of other type chain id exclude custom type
Declaration
Swift
public static var allCases: [Flow.ChainID]
-
Name of the chain id
Declaration
Swift
public var name: String { get }
-
Value from the access API https://rest-mainnet.onflow.org/v1/network/parameters https://rest-testnet.onflow.org/v1/network/parameters
Declaration
Swift
public var value: String { get }
-
Undocumented
Declaration
Swift
public init(name: String)
-
-
Undocumented
-
Default node for
.mainnet, .testnet, .canarynet, .emulator
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws