TezosNodeClientConfig
public struct TezosNodeClientConfig
A configuration object used to provide settings to the TezosNodeClient
-
An enum indicating whether the network is mainnet or testnet
See moreDeclaration
Swift
public enum NetworkType : String -
Allow switching between local forging or remote forging+parsing
See moreDeclaration
Swift
public enum ForgingType : String -
Declaration
Swift
public enum ConfigError : Error, Equatable
-
An array of Node URLs. Default to first, and fallback to rest one by one to attempt to avoid server side issues
Declaration
Swift
public let nodeURLs: [URL] -
Controls whether to use local forging or remote forging+parsing
Declaration
Swift
public let forgingType: ForgingType -
The URL to use for
TzKTClientDeclaration
Swift
public let tzktURL: URL? -
The URL to use for
TezosDomainsClientDeclaration
Swift
public let tezosDomainsURL: URL? -
The URL to use for
TezosDomainsClientDeclaration
Swift
public let objktApiURL: URL? -
The
URLSessionthat will be used for all network communication. If looking to mock this library, users should create their ownURLSessionMockand pass it in.Declaration
Swift
public var urlSession: URLSession -
The network type of the connected node
Declaration
Swift
public let networkType: NetworkType -
Control what gets logged to the console
Declaration
Swift
public var loggingConfig: LoggingConfig
-
Init a
TezosNodeClientConfigwith the defaultsDeclaration
Swift
public init(withDefaultsForNetworkType networkType: NetworkType)Parameters
withDefaultsForNetworkTypeUse the default settings for the given network type
-
Creates an instance of
TezosNodeClientConfigwith only the required properties needed when using local forge.Declaration
Swift
public static func configWithLocalForge(nodeURLs: [URL], tzktURL: URL?, tezosDomainsURL: URL?, objktApiURL: URL?, urlSession: URLSession, networkType: NetworkType) -> TezosNodeClientConfigParameters
nodeURLsAn array of URLs to use to estiamte and inject operations. Default to first and fallback to others as needed
tzktURLThe URL to use for
TzKTClient.urlSessionThe URLSession object that will perform all the network operations.
networkTypeEnum indicating the network type.
-
configWithRemoteForge(nodeURLs:parseNodeURL: tzktURL: tezosDomainsURL: objktApiURL: urlSession: networkType: ) Creates an instance of
TezosNodeClientConfigwith the required properties for remote forging. Note: function will casue afatalErrorif supplied with less than 2nodeURLsDeclaration
Swift
public static func configWithRemoteForge(nodeURLs: [URL], parseNodeURL: URL, tzktURL: URL?, tezosDomainsURL: URL?, objktApiURL: URL?, urlSession: URLSession, networkType: NetworkType) -> TezosNodeClientConfigParameters
nodeURLsAn array of URLs to use to estiamte and inject operations. Default to first and fallback to others as needed
tzktURLThe URL to use for
TzKTClient.urlSessionThe URLSession object that will perform all the network operations.
networkTypeEnum indicating the network type.
Install in Dash