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.

HTTP Status Codes

Transaction Timeouts

  • 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)

    Unused by the SDK: Soroban transactions set no lower time bound (minTime = 0). A lower bound derived from the client clock is seen as lying in the future by any submission node whose clock or ledger state lags the client, which rejects the transaction with tx_too_early.

    Declaration

    Swift

    @available(*, deprecated, message: "Unused by the SDK; Soroban transactions set no lower time bound (minTime = 0﹚.")
    public static let TRANSACTION_TIME_BUFFER_SECONDS: Int