NetworkConstants
public struct NetworkConstants : Sendable
Network and HTTP-related constants used throughout the SDK. These values define thresholds for HTTP response handling and network operations.
-
Maximum HTTP status code considered successful (299) Status codes 200-299 indicate successful HTTP responses Status codes >= 300 indicate client or server errors Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
Declaration
Swift
public static let HTTP_SUCCESS_STATUS_MAX: Int -
Minimum HTTP status code considered an error (300) Status codes >= 300 indicate redirects, client errors, or server errors Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
Declaration
Swift
public static let HTTP_ERROR_STATUS_MIN: Int
-
Default transaction timeout in seconds (300 seconds = 5 minutes) Reference: Stellar developer docs
Declaration
Swift
public static let DEFAULT_TIMEOUT_SECONDS: UInt64 -
Transaction time buffer in seconds (10 seconds) Used to account for clock skew when setting transaction time bounds
Declaration
Swift
public static let TRANSACTION_TIME_BUFFER_SECONDS: Int
View on GitHub
Install in Dash