> ## Documentation Index
> Fetch the complete documentation index at: https://docs.istravex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download a canonical ledger

> The full `LedgerCloseMeta` a fixture was verified against, as a zstd-compressed `LedgerCloseMetaBatch` (the layout of SDF's public data lake). `X-Content-SHA256` is the sha256 of the decompressed XDR.



## OpenAPI

````yaml GET /v1/ledgers/{network}/{seq}
openapi: 3.1.0
info:
  title: Istravex API
  version: 1.0.0
  description: >-
    Read-only access to the Istravex corpus: fixtures, their raw XDR, the
    canonical ledgers they were verified against, and the kit's results. Also
    hosts a mock Stellar RPC that replays the corpus for any RPC-backed indexer.
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  contact:
    url: https://github.com/hackcat29/istravex
servers:
  - url: https://api.istravex.com
    description: Production
  - url: http://localhost:8080
    description: Local (`npm run api`)
security: []
tags:
  - name: Service
  - name: Fixtures
  - name: Ledgers
  - name: Results
  - name: RPC
paths:
  /v1/ledgers/{network}/{seq}:
    get:
      tags:
        - Ledgers
      summary: Download a canonical ledger
      description: >-
        The full `LedgerCloseMeta` a fixture was verified against, as a
        zstd-compressed `LedgerCloseMetaBatch` (the layout of SDF's public data
        lake). `X-Content-SHA256` is the sha256 of the decompressed XDR.
      operationId: getLedger
      parameters:
        - name: network
          in: path
          required: true
          schema:
            type: string
            enum:
              - pubnet
              - testnet
              - local
        - name: seq
          in: path
          required: true
          schema:
            type: integer
            example: 65474279
      responses:
        '200':
          description: zstd LedgerCloseMetaBatch
          content:
            application/zstd:
              schema:
                type: string
                format: binary
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: not_found
                  message: Fixture not found
        '429':
          description: Rate limited
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.