> ## 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.

# getCode

> Returns the code stored at a given address.



## OpenAPI

````yaml openapi-getCode 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_getCode
      description: Returns the code stored at a given address.
      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_getCode
          enum:
            - quai_getCode
        params:
          type: array
          items:
            type: string
          description: The address to return code stored at, the default block parameter.
          maxItems: 2
          minItems: 2
          example:
            - '0x1dbbB54b402E725aD96fEc342AF5150a1560D4c7'
            - latest
        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: '0x3f28cb71571c7'
          description: The code stored at the given address.
        id:
          type: integer
          example: 1

````