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

# calculateConversionAmount

> Returns the amount of Quai in Wei or Qi in Qits left after converting an amount of Qi in Qits to Quai in Wei at the current block exchange rate and after applying the appropriate slip.



## OpenAPI

````yaml openapi-calculateConversionAmount 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_calculateConversionAmount
      description: >-
        Returns the amount of Quai (Wei) or Qi in (Qits) after the conversion
        flow and k quai discount slip is applied at the current 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_qiToQuai
          enum:
            - quai_qiToQuai
        params:
          items:
            oneOf:
              - type: object
              - type: string
          description: >-
            The transaction data to know the type of conversion and amount used
            for the conversion.
          maxItems: 1
          minItems: 1
          example:
            - from: '0x03b1b2fcbaa6e4a3b44ac348b00ed0a68546d26b'
              to: '0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940'
              value: '0xe3424c93'
        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: '0xA98AC7'
          description: >-
            The amount of Quai (Wei) or Qi in (Qits) after the conversion flow
            and k quai discount slip is applied at the current block
        id:
          type: integer
          example: 1

````