APIOptions

public struct APIOptions

Options for creating an API client

  • Connect to Testnet

    Declaration

    Swift

    public let testnet: Bool
  • ssl

    Use https:

    Declaration

    Swift

    public let ssl: Bool
  • Selects a random node

    Declaration

    Swift

    public let randomNode: Bool
  • Force node selection

    Declaration

    Swift

    public let node: APINode?
  • Port to connect to

    Declaration

    Swift

    public let port: String?
  • Optional nethash

    Declaration

    Swift

    public let nethash: String?
  • Set of banned nodes, unused for now

    Declaration

    Swift

    public let bannedNodes: [APINode]?
  • Undocumented

    Declaration

    Swift

    public init(testnet: Bool = false, ssl: Bool = true, randomNode: Bool = true, node: APINode? = nil, port: String? = nil, nethash: String? = nil, bannedNodes: [APINode]? = nil)