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

# Get transactions

> Returns a paginated list of transactions. You can optionally filter by message type.



## OpenAPI

````yaml /api-reference/rollup-indexer/openapi.yaml get /indexer/tx/v1/txs
openapi: 3.1.0
info:
  title: Indexer API
  description: >-
    Query indexed data including transactions, blocks, NFTs, and token holders
    across Initia Stack chains.
  version: 1.0.0
servers:
  - url: https://rollytics-api-evm-1.anvil.asia-southeast.initia.xyz
    description: evm-1 (testnet)
  - url: https://rollytics-api-move-1.anvil.asia-southeast.initia.xyz
    description: move-1 (testnet)
  - url: https://rollytics-api-wasm-1.anvil.asia-southeast.initia.xyz
    description: wasm-1 (testnet)
security: []
paths:
  /indexer/tx/v1/txs:
    get:
      tags:
        - Transactions
      summary: Get transactions
      description: >-
        Returns a paginated list of transactions. You can optionally filter by
        message type.
      operationId: getTransactions
      parameters:
        - name: msgs
          in: query
          description: >-
            Message types to filter by (comma-separated). Example:
            `cosmos.bank.v1beta1.MsgSend,initia.move.v1.MsgExecute`.
          required: false
          schema:
            type: string
        - $ref: '#/components/parameters/paginationKey'
        - $ref: '#/components/parameters/paginationOffset'
        - $ref: '#/components/parameters/paginationLimit'
        - $ref: '#/components/parameters/paginationCountTotal'
        - $ref: '#/components/parameters/paginationReverse'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  txs:
                    type: array
                    items:
                      $ref: '#/components/schemas/Tx'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
components:
  parameters:
    paginationKey:
      name: pagination.key
      in: query
      description: Cursor key for pagination.
      required: false
      schema:
        type: string
    paginationOffset:
      name: pagination.offset
      in: query
      description: Number of records to skip.
      required: false
      schema:
        type: integer
    paginationLimit:
      name: pagination.limit
      in: query
      description: Maximum number of records to return. Defaults to 100.
      required: false
      schema:
        type: integer
        default: 100
    paginationCountTotal:
      name: pagination.count_total
      in: query
      description: Whether to return the total count. Defaults to `true`.
      required: false
      schema:
        type: boolean
        default: true
    paginationReverse:
      name: pagination.reverse
      in: query
      description: When `true`, returns results in descending order. Defaults to `true`.
      required: false
      schema:
        type: boolean
        default: true
  schemas:
    Tx:
      type: object
      properties:
        txhash:
          type: string
          description: Transaction hash.
        height:
          type: string
          description: Block height where this transaction was included.
        codespace:
          type: string
          description: Error codespace, if the transaction failed.
        code:
          type: integer
          description: Response code. `0` indicates success; non-zero indicates an error.
        data:
          type: string
          description: Hex-encoded result data.
        raw_log:
          type: string
          description: Raw log output from the transaction.
        logs:
          type: array
          description: Parsed ABCI message logs.
          items:
            type: object
        info:
          type: string
          description: Additional information.
        gas_wanted:
          type: string
          description: Gas requested by the transaction.
        gas_used:
          type: string
          description: Gas consumed by the transaction.
        tx:
          type: object
          description: The full transaction body including messages and signatures.
        timestamp:
          type: string
          description: Transaction timestamp in RFC 3339 format.
        events:
          type: array
          description: Events emitted by the transaction.
          items:
            type: object
    Pagination:
      type: object
      description: Pagination metadata for list responses.
      properties:
        previous_key:
          type: string
          nullable: true
          description: Cursor key for the previous page.
        next_key:
          type: string
          nullable: true
          description: Cursor key for the next page. Null when there are no more results.
        total:
          type: string
          description: Total number of records matching the query.

````