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

# Validate an unsigned transaction matches a prior simulation

> Validate an unsigned transaction matches a prior simulation



## OpenAPI

````yaml /public/quoter-openapi.json post /api/v1/validate
openapi: 3.1.0
info:
  title: Enso Quoter API
  description: API for quoting DeFi transactions
  contact:
    name: Enso Build
    url: https://enso.build
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://quoter.api.enso.build
security: []
tags:
  - name: quote
    description: Transaction quoting endpoints
paths:
  /api/v1/validate:
    post:
      tags:
        - quote
      summary: Validate an unsigned transaction matches a prior simulation
      description: Validate an unsigned transaction matches a prior simulation
      operationId: ValidateController_validate
      parameters:
        - name: x-request-id
          required: true
          in: header
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateRequest'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateResponse'
components:
  schemas:
    ValidateRequest:
      type: object
      properties:
        simulationId:
          type: string
          description: Simulation ID from a prior /simulate call
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        transaction:
          description: The unsigned transaction to validate
          allOf:
            - $ref: '#/components/schemas/UnsignedTransactionDto'
      required:
        - simulationId
        - transaction
    ValidateResponse:
      type: object
      properties:
        valid:
          type: boolean
          description: Whether all validation checks passed
        simulationId:
          type: string
          description: The simulation ID validated against
        checks:
          description: Per-field validation results
          allOf:
            - $ref: '#/components/schemas/ValidationChecks'
      required:
        - valid
        - simulationId
        - checks
    UnsignedTransactionDto:
      type: object
      properties:
        data:
          type: string
          description: Hex-encoded calldata
          example: '0xabcdef'
        to:
          type: string
          description: Target contract address
          example: '0x80EbA3855878739F4710233A8a19d89Bdd2ffB8E'
        from:
          type: string
          description: Sender address
          example: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'
        value:
          type: string
          description: Value in wei (decimal or 0x string)
          example: '1000000000000000000'
        chainId:
          type: number
          description: Chain ID
          example: 1
      required:
        - data
        - to
        - from
        - value
        - chainId
    ValidationChecks:
      type: object
      properties:
        chainId:
          type: boolean
        data:
          type: boolean
        to:
          type: boolean
        value:
          type: boolean
        from:
          type: boolean
      required:
        - chainId
        - data
        - to
        - value
        - from

````