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

# verifychain | Bitcoin

The `verifychain` method checks the integrity of the blockchain database on the node.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `check level` (optional): An integer between 0 and 4 that determines the thoroughness of the verification process. The default level is 3.

## Response

* `result` — a boolean indicating whether the blockchain is valid.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request.

## Use case

The `verifychain` method is useful for node operators and developers who want to ensure the integrity and consistency of their blockchain data. It can be used as a diagnostic tool to detect issues within the blockchain database.


## OpenAPI

````yaml /openapi/bitcoin_node_api/verifychain.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: verifychain example
  version: 1.0.0
  description: >-
    This is an API example for verifychain, a method to verify the blockchain
    database.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: verifychain
      operationId: verifyChain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: verifychain
                params:
                  type: array
                  items:
                    type: integer
                    description: 'The check level (0-4, default: 3)'
                    example: 3
                  default:
                    - 3
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The result of the blockchain verification
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: boolean
                    description: The result of the verification
                  error:
                    type: object
                  id:
                    type: integer

````