APINethash

public struct APINethash

Nethash options that are sent as request headers

  • HTTP content type

    Declaration

    Swift

    public let contentType = "application/json"
  • Swift os

    Declaration

    Swift

    public let clientOS = "lisk-api-swift"
  • Minmimum supported api version

    Declaration

    Swift

    public let minVersion = ">=0.5.0"
  • Current api version

    Declaration

    Swift

    public let version: String
  • Port to connect to

    Declaration

    Swift

    public let port: String
  • Nethash

    Declaration

    Swift

    public let nethash: String
  • Broadhash

    Declaration

    Swift

    public let broadhash: String
  • Mainnet options

    Declaration

    Swift

    public static func mainnet(port: String, nethash: String? = nil) -> APINethash
  • Testnet options

    Declaration

    Swift

    public static func testnet(port: String, nethash: String? = nil) -> APINethash