GetLatestLedgerResponse

public struct GetLatestLedgerResponse : Decodable, Sendable

Response for the getLatestLedger request See: Stellar developer docs

  • id

    hash of the latest ledger as a hex-encoded string

    Declaration

    Swift

    public let id: String
  • Stellar Core protocol version associated with the latest ledger

    Declaration

    Swift

    public let protocolVersion: Int
  • sequence number of the latest ledger

    Declaration

    Swift

    public let sequence: UInt32
  • The unix timestamp of when the latest ledger was closed. Available since RPC v25.0.0.

    Declaration

    Swift

    public let closeTime: String?
  • Base64-encoded LedgerHeader XDR. Available since RPC v25.0.0.

    Declaration

    Swift

    public let headerXdr: String?
  • Base64-encoded LedgerCloseMeta XDR containing ledger close metadata. Available since RPC v25.0.0.

    Declaration

    Swift

    public let metadataXdr: String?
  • Declaration

    Swift

    public init(from decoder: Decoder) throws