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

# getProof

> Returns the Merkle-Proof for a given account and optional storage keys.



## OpenAPI

````yaml openapi-getProof 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_getProof
      description: Returns the Merkle-proof for a given account and optional storage keys.
      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_getProof
          enum:
            - quai_getProof
        params:
          type: array
          items:
            oneOf:
              - type: string
              - type: array
                items:
                  type: string
          description: >-
            The address to return code stored at, the value corresponding to the
            storage position, the default block parameter.
          maxItems: 3
          minItems: 3
          example:
            - '0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842'
            - - >-
                0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
            - 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: object
          properties:
            address:
              type: string
              description: The address of the account the proof is for.
            accountProof:
              type: array
              items:
                type: string
              description: The account proof.
            balance:
              type: string
              description: The balance of the account.
            codeHash:
              type: string
              description: The code hash of the account.
            nonce:
              type: string
              description: The nonce of the account.
            storageHash:
              type: string
              description: The storage hash of the account.
            storageProof:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    description: The key corresponding to the storage position.
                  value:
                    type: string
                    description: The value corresponding to the storage position.
                  proof:
                    type: array
                    description: The storage proof.
                    items:
                      type: string
              description: The storage proof.
          example:
            address: '0x7f0d15c7faae65896648c8273b6d7e43f58fa842'
            accountProof:
              - >-
                0xf8518080808080a0c330e7e9f2c4d26b65d6a75253887c5aaf97e0f8d4fca55b9c1b4d258acf69b78080808080808080a0eaa68ff161bff8212a577807d9d5031f7298825a42777c9837dad04d377595d68080
              - >-
                0xf870a03380c7b7ae81a58eb98d9c78de4a1fd7fd9535fc953ed2be602daaa41767312ab84df84b808706943fdbce684ba056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
            balance: '0x0'
            codeHash: '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
            nonce: '0x0'
            storageHash: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421'
            storageProof:
              - key: >-
                  0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
                value: '0x0'
                proof: []
          description: The proof object.
        id:
          type: integer
          example: 1

````