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

# rawTxByNumberAndIndex

> Returns bytecode for a raw transaction given block number and transaction index.



## OpenAPI

````yaml openapi-getRawTransactionByBlockNumberAndIndex POST /
openapi: 3.0.0
info:
  title: Quai JSON RPC API
  version: 1.0.0
servers:
  - url: https://rpc.quai.network/cyprus1
security: []
paths:
  /:
    post:
      summary: quai_getRawTransactionByBlockNumberAndIndex
      description: >-
        Returns the bytecode for a raw transaction given a block number and the
        transaction's index within the block.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
components:
  schemas:
    Request:
      type: object
      required:
        - jsonrpc
        - method
        - params
        - id
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          enum:
            - '2.0'
        method:
          type: string
          description: The name of the method to be invoked.
          example: quai_getRawTransactionByBlockNumberAndIndex
          enum:
            - quai_getRawTransactionByBlockNumberAndIndex
        params:
          type: array
          description: The block number and transaction index.
          items:
            type: string
          maxItems: 2
          minItems: 2
          example:
            - '0x12F'
            - '0x1'
        id:
          type: integer
          description: A unique identifier for the request.
          example: 1
    Response:
      type: object
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        result:
          type: string
          example: >-
            0x00f86c82232824843b9aca00847735940482a41094111a8a2ffb1729497e0cfbfc5fa2e2b405e13ba74f80c080a01c2ae1b000172a500f1a7e6e9265264d9ba9e9edd835411bf4233f3f2b05c7d9a01f9e48da332873ea7514b5ffa17febd543a7a9d0ef20651a4b14a394c0333837
          description: The raw transaction bytecode.
        id:
          type: integer
          example: 1

````