> ## 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 fixture's XDR

> Returns one XDR value from the fixture, base64 by default (exactly as stored in the repository), or raw bytes with `encoding=binary`. `X-XDR-Type` names the XDR type and `X-Content-SHA256` is the sha256 of the decoded bytes, matching the manifest.



## OpenAPI

````yaml GET /v1/fixtures/{id}/files/{name}
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/fixtures/{id}/files/{name}:
    get:
      tags:
        - Fixtures
      summary: Download a fixture's XDR
      description: >-
        Returns one XDR value from the fixture, base64 by default (exactly as
        stored in the repository), or raw bytes with `encoding=binary`.
        `X-XDR-Type` names the XDR type and `X-Content-SHA256` is the sha256 of
        the decoded bytes, matching the manifest.
      operationId: getFixtureFile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: cap27-muxed-payment-pubnet-0001
        - name: name
          in: path
          required: true
          schema:
            type: string
            example: envelope
          description: >-
            File name from the manifest's `files` (e.g. `envelope`, `meta`,
            `result`, `fee_meta`, `ledger_entry`).
        - name: encoding
          in: query
          schema:
            type: string
            enum:
              - base64
              - binary
            default: base64
      responses:
        '200':
          description: XDR value
          headers:
            X-XDR-Type:
              schema:
                type: string
            X-Content-SHA256:
              schema:
                type: string
          content:
            text/plain:
              schema:
                type: string
            application/octet-stream:
              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.