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

# List orders

> Every order, newest first unless sorted.



## OpenAPI

````yaml /api-reference/openapi.yaml get /offers
openapi: 3.1.0
info:
  title: Ambi indexer API
  version: 1.0.0
  description: >
    Reads every Ambi event on Ethereum and each destination chain and serves the
    order book, order history, activity and stats. Served with the app at
    `/api`.
servers:
  - url: https://ambichain.org/api
    description: Served with the app
security: []
paths:
  /offers:
    get:
      summary: List orders
      description: Every order, newest first unless sorted.
      parameters:
        - name: chain
          in: query
          description: Route name or chain ID
          schema:
            type: string
            example: base
        - name: asset
          in: query
          description: Escrow token address, request asset string, or catalog symbol
          schema:
            type: string
            example: DAI
        - name: state
          in: query
          schema:
            $ref: '#/components/schemas/State'
        - name: maker
          in: query
          schema:
            $ref: '#/components/schemas/Address'
        - name: q
          in: query
          description: Substring of token, maker, route or ID
          schema:
            type: string
        - name: sort
          in: query
          schema:
            type: string
            enum:
              - deadline
              - amount
              - oldest
      responses:
        '200':
          description: Orders
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Order'
components:
  schemas:
    State:
      type: string
      enum:
        - listed
        - matched
        - filled
        - refunded
        - canceled
    Address:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
    Order:
      type: object
      properties:
        id:
          type: string
        maker:
          $ref: '#/components/schemas/Address'
        token:
          $ref: '#/components/schemas/Address'
        amount:
          type: string
          description: Escrow
          base units: null
        bond:
          type: string
          description: Wei
        request:
          $ref: '#/components/schemas/Request'
        route:
          type: string
          example: base
        chain:
          type: integer
          example: 8453
        state:
          $ref: '#/components/schemas/State'
        timestamp:
          type: integer
        interests:
          type: array
          items:
            $ref: '#/components/schemas/Address'
        filler:
          oneOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
        statement:
          type:
            - string
            - 'null'
        cancelProposedBy:
          type:
            - string
            - 'null'
        claim:
          description: The bonded claim on the route's inbox, once one is made
          oneOf:
            - type: 'null'
            - type: object
              properties:
                outcome:
                  type: string
                  enum:
                    - Paid
                    - ExpiredUnpaid
                claimant:
                  $ref: '#/components/schemas/Address'
                deadline:
                  type: integer
                  description: End of the dispute window
                  unix seconds: null
                disputer:
                  oneOf:
                    - $ref: '#/components/schemas/Address'
                    - type: 'null'
                resolved:
                  type: boolean
        payout:
          description: The matched filler's receive address, if they named one
          oneOf:
            - $ref: '#/components/schemas/Address'
            - type: 'null'
        integrator:
          description: Set when the order was listed with listVia
          oneOf:
            - type: 'null'
            - type: object
              properties:
                account:
                  $ref: '#/components/schemas/Address'
                bps:
                  type: integer
                  minimum: 1
                  maximum: 100
                  example: 50
        destinationOutcome:
          oneOf:
            - type: 'null'
            - type: object
              properties:
                outcome:
                  type: string
                  enum:
                    - Paid
                    - ExpiredUnpaid
                hash:
                  type: string
                timestamp:
                  type: integer
        lifecycle:
          type: array
          items:
            $ref: '#/components/schemas/Event'
    Request:
      type: object
      properties:
        chain:
          type: string
          example: eip155:8453
        asset:
          type: string
          example: erc20:0xbaa5cc21fd487b8fcc2f632f3f4e8d37262a0842
        recipient:
          type: string
        routeData:
          type: string
          description: Router and token address
          packed: null
        amount:
          type: string
          description: Base units
        verifier:
          $ref: '#/components/schemas/Address'
        payBy:
          type: string
          description: Unix seconds
        proveBy:
          type: string
    Event:
      type: object
      properties:
        type:
          type: string
          example: Matched
        chain:
          type: string
          example: ethereum
        block:
          type: integer
        position:
          type: integer
        hash:
          type: string
        timestamp:
          type: integer
        args:
          type: object
          additionalProperties: true

````

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