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

# Send a bundle

> One bundle of 1 to 4 fully signed transactions, in base64, that land together or not at all in the normal case. The tips to the tip accounts in all of them together must reach the minimum tip; pay them to one tip account. The first transaction must not use a durable nonce (`nonce_not_bundled`); later transactions may. A bundle counts one send per transaction against your rate, goes only to bundle paths, and we add one transaction of ours as its last member. When a specific member fails validation, `error.memberIndex` gives its zero-based index. When no bundle can carry it, it is refused with `bundle_unavailable`. The body is at most 64 KiB.



## OpenAPI

````yaml /api-reference/openapi.yaml post /v1/bundles
openapi: 3.1.0
info:
  title: Tracefall Sender
  version: 1.0.0
  description: >-
    The endpoints of Tracefall Sender: JSON-RPC (`POST /`, also served at Jito's
    paths `POST /api/v1/transactions` and `POST /api/v1/bundles`) and the REST
    endpoints. The WebSocket (`GET /v1/ws`) is described in the Sending guide. A
    key is optional: with none, a request is admitted at the keyless rate for
    its client address. Pass a key in `Authorization: Bearer <key>`, `x-api-key`
    or `?api-key=`. A request body is at most 16 KiB, or 64 KiB for a bundle or
    a JSON-RPC batch. Every HTTP answer to a send, status lookup (`GET
    /v1/transactions/{signature}`), or tip-floor read (`GET /v1/tip-floor`)
    carries the rate headers `x-ratelimit-limit` and `x-ratelimit-remaining`
    (and `retry-after` on a 429), and CORS lets a web page on any origin read
    them.
servers:
  - url: https://sender.tracefall.xyz
    description: Frankfurt
security: []
tags:
  - name: JSON-RPC
  - name: Sending
  - name: Tips
  - name: Status
paths:
  /v1/bundles:
    post:
      tags:
        - Sending
      summary: Send a bundle
      description: >-
        One bundle of 1 to 4 fully signed transactions, in base64, that land
        together or not at all in the normal case. The tips to the tip accounts
        in all of them together must reach the minimum tip; pay them to one tip
        account. The first transaction must not use a durable nonce
        (`nonce_not_bundled`); later transactions may. A bundle counts one send
        per transaction against your rate, goes only to bundle paths, and we add
        one transaction of ours as its last member. When a specific member fails
        validation, `error.memberIndex` gives its zero-based index. When no
        bundle can carry it, it is refused with `bundle_unavailable`. The body
        is at most 64 KiB.
      operationId: sendBundle
      parameters:
        - $ref: '#/components/parameters/ApiKeyHeader'
        - $ref: '#/components/parameters/ApiKeyQuery'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BundleRequest'
            example:
              transactions:
                - <base64 transaction 1>
                - <base64 transaction 2>
      responses:
        '200':
          description: Taken, and on its way. It has not landed yet.
          headers:
            x-ratelimit-limit:
              $ref: '#/components/headers/RateLimit'
            x-ratelimit-remaining:
              $ref: '#/components/headers/RateRemaining'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BundleResult'
              example:
                bundleId: <bundle id>
                status: accepted
        '400':
          $ref: '#/components/responses/Refused'
        '401':
          $ref: '#/components/responses/Refused'
        '403':
          $ref: '#/components/responses/Refused'
        '413':
          $ref: '#/components/responses/Refused'
        '429':
          $ref: '#/components/responses/Refused'
        '503':
          $ref: '#/components/responses/Refused'
components:
  parameters:
    ApiKeyHeader:
      name: x-api-key
      in: header
      required: false
      description: >-
        Your key, if you have one: `tfs_` followed by 48 hex characters.
        `Authorization: Bearer <key>` works the same. Leave it out to send
        keyless.
      schema:
        type: string
    ApiKeyQuery:
      name: api-key
      in: query
      required: false
      description: >-
        Your key in the URL, for clients that can set only a URL. Prefer a
        header.
      schema:
        type: string
  schemas:
    BundleRequest:
      type: object
      required:
        - transactions
      properties:
        transactions:
          type: array
          minItems: 1
          maxItems: 4
          items:
            type: string
            description: A signed transaction, base64.
    BundleResult:
      type: object
      required:
        - bundleId
        - status
      properties:
        bundleId:
          type: string
          description: >-
            The bundle id Jito computes, over your transactions alone: the
            SHA-256, in lowercase hex, of their first signatures in base58,
            joined by `,`. It identifies the bundle to us only: we append our
            transaction to every bundle we forward, so no block engine knows it
            by this id.
        status:
          type: string
          enum:
            - accepted
            - duplicate
          description: '`duplicate` when we already took any of the bundle''s transactions.'
    Error:
      type: object
      required:
        - error
      properties:
        signature:
          type: string
          description: The transaction's first signature, base58, when we could read one.
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
              description: For people. It may change; match on `code`.
            memberIndex:
              type: integer
              minimum: 0
              maximum: 3
              description: >-
                Zero-based index of the offending transaction in a bundle
                refusal, when one member failed.
    ErrorCode:
      type: string
      enum:
        - unauthorized
        - unavailable
        - paused
        - rate_limited
        - too_large
        - not_a_transaction
        - bad_signature
        - bad_request
        - tip_missing
        - tip_too_small
        - tip_in_lookup_table
        - tip_account_retired
        - bundle_too_large
        - nonce_not_bundled
        - bundle_unavailable
        - not_found
  headers:
    RateLimit:
      description: >-
        Your rate, in sends a second. Omitted on refusals before rate checks
        (401, 403, 503 while starting).
      schema:
        type: integer
    RateRemaining:
      description: >-
        What is left of your rate now. Omitted on refusals before rate checks
        (401, 403, 503 while starting).
      schema:
        type: integer
    RetryAfter:
      description: On a 429, how long to wait, in seconds.
      schema:
        type: integer
  responses:
    Refused:
      description: Refused. `error.code` names why; see the Errors guide.
      headers:
        x-ratelimit-limit:
          $ref: '#/components/headers/RateLimit'
        x-ratelimit-remaining:
          $ref: '#/components/headers/RateRemaining'
        retry-after:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            signature: >-
              5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW
            error:
              code: tip_too_small
              message: >-
                the tip is 50,000 lamports; the minimum is 100,000 lamports
                (0.0001 SOL)

````

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