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

# Submit a signed swap

> Send the user's signed build instead of broadcasting it. Route checks it is exactly the build of `ticket`, simulates it
at the latest block as the sender, broadcasts it and tracks it. Idempotent: the same signed transaction returns its
existing record (`existing: true`). `{ "gasless": <POST /gasless/submit body> }` relays a gasless order instead.
Keys with submit and track on. Robinhood Chain.




## OpenAPI

````yaml openapi.yaml POST /submit
openapi: 3.1.0
info:
  title: Route API
  version: '2026-10-30'
  summary: >-
    Best-price swaps. One request returns the quote and a ready-to-sign
    transaction.
  description: >
    Robinhood Chain (chain ID 4663) at the root. Other EVM chains use the same
    `/quote`, `/tokens` and `/health` under a chain

    prefix, for example `https://partners.route.fun/base/quote` (see the chains
    page). Solana is under `/solana` with its own

    fields (see the Solana pages); it is not described in this file.


    Access: the public tier needs no key (`/quote` and `/health`; per-IP limits;
    CORS allowed). A partner key (`rk_...`, DM

    @rapidssh) is sent as `Authorization: Bearer rk_...` from a backend. Submit
    and track, gasless swaps, standing orders,

    delegated execution and partner fees are switched on per key; when off they
    return 403.


    Conventions: the native token is the zero address. Amounts are raw token
    units as decimal strings. Every response has an

    `x-request-id` header; send your own (1 to 64 characters of `A-Za-z0-9._:-`)
    to trace a request.


    Route contracts are source-verified on Sourcify. None has had a formal
    third-party audit.
  contact:
    name: '@rapidssh'
    url: https://x.com/rapidssh
servers:
  - url: https://partners.route.fun
security:
  - {}
  - partnerKey: []
tags:
  - name: Swaps
  - name: Submit and track
  - name: Gasless
  - name: Standing orders
  - name: Delegated execution
paths:
  /submit:
    post:
      tags:
        - Submit and track
      summary: Submit a signed swap
      description: >
        Send the user's signed build instead of broadcasting it. Route checks it
        is exactly the build of `ticket`, simulates it

        at the latest block as the sender, broadcasts it and tracks it.
        Idempotent: the same signed transaction returns its

        existing record (`existing: true`). `{ "gasless": <POST /gasless/submit
        body> }` relays a gasless order instead.

        Keys with submit and track on. Robinhood Chain.
      operationId: submit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  title: Signed build
                  required:
                    - raw
                    - ticket
                  properties:
                    raw:
                      type: string
                      pattern: ^0x[0-9a-fA-F]+$
                      description: >-
                        The signed transaction of the build, exactly as
                        returned.
                    ticket:
                      type: string
                      description: '`submit.ticket` of that build.'
                - type: object
                  title: Gasless order
                  required:
                    - gasless
                  properties:
                    gasless:
                      $ref: '#/components/schemas/GaslessSubmit'
      responses:
        '200':
          description: Broadcast (`pending`), or the existing record of this transaction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
        '400':
          description: >-
            Not a Route build for this key: no, invalid or expired ticket,
            changed calldata, other target or chain.
        '403':
          description: Submit and track is not on for this key.
        '409':
          description: Already submitted by another key.
        '422':
          description: >-
            Would not land now. `requote: true` (with `shortfallBps`) when the
            price moved: quote again. `requote: false`: fix the transaction
            (nonce, gas limit, fee cap, balance).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          description: Every broadcast target refused it.
      security:
        - partnerKey: []
components:
  schemas:
    GaslessSubmit:
      type: object
      required:
        - order
        - nonce
        - signature
        - ticket
      properties:
        order:
          type: object
          description: '`gasless.order`, as returned.'
        nonce:
          type: string
          description: '`gasless.nonce`.'
        signature:
          type: string
          description: The owner's 65-byte signature of `gasless.typedData`.
        ticket:
          type: string
          description: '`gasless.ticket`.'
        erc2612:
          type: object
          description: When `gasless.approval.erc2612` was returned.
          properties:
            signature:
              type: string
            value:
              type: string
            deadline:
              type: string
    Status:
      type: object
      required:
        - id
        - status
        - mode
        - submittedAt
      properties:
        id:
          type: string
          description: Transaction hash.
        status:
          type: string
          enum:
            - pending
            - landed
            - reverted
            - dropped
          description: >-
            `dropped`: its nonce was used by another transaction, or it was not
            included within 15 minutes.
        mode:
          type: string
          enum:
            - raw
            - gasless
        from:
          $ref: '#/components/schemas/Address'
        to:
          $ref: '#/components/schemas/Address'
        tokenIn:
          $ref: '#/components/schemas/Address'
        tokenOut:
          $ref: '#/components/schemas/Address'
        amountIn:
          $ref: '#/components/schemas/Uint'
        recipient:
          $ref: '#/components/schemas/Address'
        quotedNetOut:
          $ref: '#/components/schemas/Uint'
        minOut:
          $ref: '#/components/schemas/Uint'
        submittedAt:
          type: integer
          description: Unix ms.
        block:
          type: integer
          description: Inclusion block.
        gasUsed:
          type:
            - string
            - 'null'
        amountOut:
          type:
            - string
            - 'null'
          description: What the recipient received (landed).
        realizedBps:
          type:
            - number
            - 'null'
          description: amountOut vs quotedNetOut, in bps.
        vsMinOutBps:
          type:
            - number
            - 'null'
          description: amountOut vs minOut, in bps.
        rebroadcasts:
          type: integer
        reason:
          type: string
          description: Why it was dropped.
        existing:
          type: boolean
    Error:
      type: object
      required:
        - error
      properties:
        requestId:
          type: string
        error:
          type: string
        requote:
          type: boolean
    Address:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
    Uint:
      type: string
      pattern: ^[0-9]+$
      description: Unsigned integer as a decimal string.
  responses:
    RateLimited:
      description: >-
        `Rate limit exceeded for this key`, `Too many concurrent requests for
        this key`, `Too many live streams for this key`, or the public tier's
        per-IP limit.
      headers:
        retry-after:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  securitySchemes:
    partnerKey:
      type: http
      scheme: bearer
      description: >-
        Partner key: `Authorization: Bearer rk_...`. DM @rapidssh. Leave it out
        for the public tier.

````

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