Config

public struct Config

Used in convenience initializer in the NimiqClient class.

  • Protocol squeme, "http" or "https".

    Declaration

    Swift

    public let scheme: String
  • Authorized user.

    Declaration

    Swift

    public let user: String
  • Password for the authorized user.

    Declaration

    Swift

    public let password: String
  • Host IP address.

    Declaration

    Swift

    public let host: String
  • Host port.

    Declaration

    Swift

    public let port: Int
  • Config initialization.

    Declaration

    Swift

    public init(scheme: String = "http", user: String = "", password: String = "", host: String = "127.0.0.1", port: Int = 8648)

    Parameters

    scheme

    Protocol squeme, "http" or "https".

    user

    Authorized user.

    password

    Password for the authorized user.

    host

    Host IP address.

    port

    Host port.