# Execute a quote



{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

```yaml
POST /v1/quotes/{orderId}/executions:
  summary: Execute a quote
  description: |
    Submits the results of a quote's actions. Call it only when the quote's `nextActions` ends with `submit_execution`, and send it before the quote's `expiresAt`. Which `authorization` arm to send follows from those actions -- see below.

    Not every quote needs this call. When the `nextActions` are only approvals and a `send_transaction` with `id: prefunded-store`, there is no `submit_execution`: once that transaction lands, Across picks the deposit up on chain and the transfer starts. Track it with `GET /v1/transfers/{orderId}`. Reporting its hash here with the `txnRef` arm is optional.
    A 2xx means accepted, not arrived; follow it with `GET /v1/transfers/{orderId}`.
  parameters:
    - name: orderId
      in: path
      required: true
      schema:
        type: string
      examples:
        default:
          value: "0x625b3f050d78e03ac4da0cbd69aba447825481bb7e7b3b623bd0e350be628874"
      description: The `orderId` returned by `POST /v1/quotes`. Quotes expire about 15 minutes after issue, so replace the example below with one you just created.
  requestBody:
    required: true
    content:
      application/json:
        schema:
          $ref: "#/components/schemas/PostQuoteExecutionsRequest"
        example:
          authorization:
            signatures:
              funding: "0x7a98bfcc7d5404a499069488911a16d2f8cb5b686cb835c75f7dff3f2cf10e8348df58d09f1afb850fc6fd835f647917fec8edffbf5ea08449e49e89a475ade71c"
  responses:
    "200":
      description: Accepted execution
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/PostQuoteExecutionsResponse"
          example:
            orderId: "0x625b3f050d78e03ac4da0cbd69aba447825481bb7e7b3b623bd0e350be628874"
            acceptedAt: 2026-10-16T00:31:28.869Z
            balanceCheck:
              chainId: 8453
              tokenAddress: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
              requiredAmount: "2000000"
              observedBalance: "36522710"
              blockNumber: 52660670
              observedAt: 2026-10-16T00:31:28.944Z
    "400":
      description: |
        The authorization was missing, malformed, or did not match the quote.

        A missing arm is a `request` error naming the field. A signature that is present but wrong -- keyed by an id the quote never asked for, or failing address recovery -- is an `execution` error with code `execution.invalid_signature`, and its message names the ids the quote actually expects.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ApiErrorResponse"
          examples:
            missingField:
              summary: No signatures supplied
              value:
                error:
                  type: request
                  code: request.missing_field
                  message: authorization.signatures is required
                  param: authorization.signatures
                  requestId: mps4hrl21eqmhpeqom9q79jjeg
            wrongSignatureKey:
              summary: Signatures keyed by the wrong next-action id
              value:
                error:
                  type: execution
                  code: execution.invalid_signature
                  message: "authorization.signatures is missing an entry for: funding. This quote's signable nextActions are: funding"
                  requestId: bbrqo07u8t0i4l14j4fcrf9r58
    "401":
      description: Missing or invalid Bearer token. Rejected by the gateway, so the body is the flat gateway shape rather than the usual error envelope.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/GatewayErrorResponse"
          example:
            code: unauthenticated
            message: the request does not have valid authentication credentials for the operation
            details: null
    "429":
      description: Rate limit exceeded. Rejected by the gateway, so the body is the flat gateway shape rather than the usual error envelope.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/GatewayErrorResponse"
    default:
      description: Application error envelope. Dispatch on `error.code`, never on the HTTP status or message. Note that 401 and 429 do not use this shape -- see those responses.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ApiErrorResponse"
  security:
    - bearerAuth: []
  x-codeSamples:
    - lang: bash
      label: Curl
      source: |
        curl -L -X POST \
          'https://api.across.to/v1/quotes/<orderId>/executions' \
          -H 'Authorization: Bearer <your-api-key>' \
          -H 'Content-Type: application/json' \
          -d '{ "authorization": { "signatures": { "funding": "0x..." } } }'
components:
  schemas:
    AmountLimits:
      description: |
        Set on `policy.amount_out_of_range`: the amount bound the request crossed, so you can resize and quote again.
      type: object
      required:
        - side
        - amount
        - token
        - rail
        - observedAt
      properties:
        side:
          type: string
          enum:
            - min
            - max
        amount:
          description: |
            The bound, in base units of `token`. A bound reported by the rail is exact. A `min` from fee protection is a lower bound to exceed rather than match, so add headroom. A `min` from the economic floor (the submitter's gas and messaging cost would exceed the output) is an estimate: resize from it and quote again, but a request just above it can still be refused by the 50% fee cap with a higher `min`.
          type: string
        token:
          type: object
          required:
            - chainId
            - address
          properties:
            chainId:
              type: integer
            address:
              type: string
        rail:
          description: The rail the bound relates to. Informational -- do not dispatch on it.
          type: string
        observedAt:
          type: string
          format: date-time
    ApiError:
      type: object
      required:
        - type
        - code
        - message
      properties:
        type:
          type: string
          enum:
            - request
            - auth
            - permission
            - not_found
            - idempotency
            - rate_limit
            - conflict
            - execution
            - policy
            - system
        code:
          type: string
          enum:
            - request.invalid_json
            - request.missing_field
            - request.invalid_field
            - request.invalid_param
            - request.unsupported_param
            - auth.missing_credentials
            - auth.invalid_credentials
            - permission.not_entitled
            - not_found.quote
            - not_found.route
            - conflict.quote_expired
            - conflict.cursor_expired
            - conflict.submission_state_unknown
            - rate_limit.exceeded
            - execution.invalid_signature
            - execution.expired_authorization
            - execution.insufficient_balance
            - execution.insufficient_allowance
            - execution.tx_report_unverified
            - policy.violation
            - policy.amount_out_of_range
            - system.unavailable
            - system.internal_error
        message:
          type: string
        param:
          type: string
        requestId:
          type: string
        details:
          type: object
          additionalProperties: true
          properties:
            balanceCheck:
              $ref: "#/components/schemas/BalanceCheck"
            amountLimits:
              $ref: "#/components/schemas/AmountLimits"
            retryWithAllowedAuthorizationTypes:
              description: |
                Set on `execution.invalid_signature` when a contract wallet or EIP-7702 account rejected the signature through EIP-1271. Request a new quote with this list as `authorizationPolicy.allowedTypes` rather than asking for the same signature again. Currently always `["approval"]`; the new quote can still be refused if the route or your policy does not offer those types.
              type: array
              minItems: 1
              items:
                type: string
                enum:
                  - approval
                  - permit2
                  - erc3009
                  - hypercore_action
                  - spl_delegate
    ApiErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: "#/components/schemas/ApiError"
    BalanceCheck:
      type: object
      required:
        - chainId
        - tokenAddress
        - requiredAmount
        - observedBalance
        - blockNumber
        - observedAt
      properties:
        chainId:
          type: integer
        tokenAddress:
          description: Token whose balance was read, in its chain's native address form (base58 on Tron).
          type: string
        requiredAmount:
          description: Decimal string (uint256 base units).
          type: string
        observedBalance:
          description: Decimal string (uint256 base units).
          type: string
        blockNumber:
          description: |
            Block height the balance was read at.
          type: integer
        observedAt:
          type: string
          format: date-time
    GatewayErrorResponse:
      type: object
      description: |
        Error shape returned by the API gateway when a request is rejected before it reaches the API -- currently `401` and `429`.

        Flat, unlike the `{ error: { ... } }` envelope every other error uses. Handle both.
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: |
            Gateway status code, for example `unauthenticated` on a missing or invalid Bearer token.
          example: unauthenticated
        message:
          type: string
          example: the request does not have valid authentication credentials for the operation
        details:
          type: object
          nullable: true
          additionalProperties: true
          description: Additional context. Null on authentication failures.
    PostQuoteExecutionsRequest:
      type: object
      description: |
        The results of the quote's actions, for a quote whose `nextActions` ends with `submit_execution`. Which arm to submit follows from those actions; submitting the wrong arm is rejected.
      required:
        - authorization
      additionalProperties: false
      properties:
        authorization:
          description: |
            Execution credential. Pick the arm from the quote's `nextActions`:

            - `signatures`: any quote that asks for a signature. A map keyed by the `id` of each `sign_typed_data` action, the same shape for one signature or several. An empty map is correct when `submit_execution` has empty `inputs` (approval funding with no on-chain deposit transaction).
            - `txnRef`: optional. A quote funded by a `prefunded-store` transaction has no `submit_execution` and starts on its own once that transaction lands. If you report it anyway, send its hash here; the `signatures` arm is rejected for it.
            - `signedTransaction`: sponsored Solana quotes (`sponsoredBy: "across"`).
          oneOf:
            - type: object
              title: signatures
              required:
                - signatures
              additionalProperties: false
              properties:
                signatures:
                  type: object
                  additionalProperties:
                    type: string
                    pattern: ^0x[0-9a-fA-F]*$
                  description: |
                    Signatures keyed by next-action `id`. Must carry an entry for exactly the `nextActions` entries with `kind: "sign_typed_data"` -- a missing or unrecognised id is rejected and names the id. Empty is valid when `submit_execution` has empty `inputs`.
                  example:
                    funding: 0x9947456ab053e6cb59f17d571dcd...1b
            - type: object
              title: txnRef
              required:
                - txnRef
              additionalProperties: false
              properties:
                txnRef:
                  type: string
                  pattern: ^(?:0x(?:[0-9a-fA-F]{64}|[0-9a-fA-F]{128})|[1-9A-HJ-NP-Za-km-z]{86,88})$
                  description: |
                    Transaction reference: the 32-byte EVM hash (0x-hex) of the `prefunded-store` transaction, or the 64-byte Solana signature of the `store` broadcast for an `spl_delegate` quote -- 0x-hex or base58 (86-88 chars). Optional for a `prefunded-store` quote: the transfer starts once the transaction lands, whether or not you report it.
            - type: object
              title: signedTransaction
              required:
                - signedTransaction
              additionalProperties: false
              properties:
                signedTransaction:
                  type: string
                  pattern: ^[A-Za-z0-9+/]{1,1644}={0,2}$
                  description: |
                    Sponsored Solana quotes only (the Solana action carries `sponsoredBy: across`): the quote's `transaction` with the depositor's signature added, base64, not broadcast. `400 SPONSORED_TRANSACTION_EXPIRED` means re-quote; `409 conflict.submission_state_unknown` means retry this same request with backoff, never re-quote.
    PostQuoteExecutionsResponse:
      type: object
      required:
        - orderId
        - acceptedAt
      properties:
        orderId:
          description: Same value as the quote's `orderId`. Track the transfer with `GET /v1/transfers/{orderId}`.
          type: string
        acceptedAt:
          type: string
          format: date-time
        balanceCheck:
          description: Present only when the balance gate obtained a fresh on-chain reading (fail-open omits it; a replayed submission also omits it).
          allOf:
            - $ref: "#/components/schemas/BalanceCheck"
```
