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

# debug_getBadBlocks | Arc

> Arc API method that returns a list of invalid blocks that the node has encountered. Useful for debugging consensus or block validation issues.

Arc API method that returns a list of invalid blocks that the node has encountered. Useful for debugging consensus or block validation issues.

## Parameters

* `none`

## Response

* `result` — an array of bad block objects that the node has encountered. Each object contains the full block data and the reason it was rejected.

## `debug_getBadBlocks` code examples

<CodeGroup>
  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "debug_getBadBlocks", "params": [], "id": 1}'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/arc_node_api/debug_and_trace/debug_getBadBlocks.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: debug_getBadBlocks
      operationId: debug_getBadBlocks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: debug_getBadBlocks
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: Returns the result of debug_getBadBlocks.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    items:
                      type: object
              example:
                jsonrpc: '2.0'
                id: 1
                result: []

````