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

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

Tempo 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/tempo_node_api/debug_and_trace/debug_getBadBlocks.json POST /
openapi: 3.0.0
info:
  title: debug_getBadBlocks Tempo example
  version: 1.0.0
  description: This is an API example for debug_getBadBlocks for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Debug and trace
      summary: debug_getBadBlocks
      operationId: tempo-debug-getBadBlocks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: debug_getBadBlocks
                params:
                  type: array
                  items: {}
                  default: []
                  description: Method parameters
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    description: Method result

````