GetLedgersResponse

public struct GetLedgersResponse : Decodable, Sendable

Response for the getLedgers request See: Stellar developer docs

  • Array of ledger information

    Declaration

    Swift

    public let ledgers: [LedgerInfo]
  • The sequence number of the latest ledger known to Soroban RPC at the time it handled the request.

    Declaration

    Swift

    public let latestLedger: UInt32
  • The unix timestamp of the close time of the latest ledger known to Soroban RPC at the time it handled the request.

    Declaration

    Swift

    public let latestLedgerCloseTime: Int64
  • The sequence number of the oldest ledger ingested by Soroban RPC at the time it handled the request.

    Declaration

    Swift

    public let oldestLedger: UInt32
  • The unix timestamp of the close time of the oldest ledger ingested by Soroban RPC at the time it handled the request.

    Declaration

    Swift

    public let oldestLedgerCloseTime: Int64
  • A cursor value for use in pagination

    Declaration

    Swift

    public let cursor: String
  • Declaration

    Swift

    public init(from decoder: Decoder) throws