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

# debug_traceBadBlock

> Executes the transactions in a bad block and returns the traces.

### Parameters

**chainId** `string` *required* (default: 10)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: debug\_traceBadBlock)

JSON-RPC method name.

**params** `object` *required*

Parameters: \[blockHash, options?].

Positional parameters for `debug_traceBadBlock`:

<ul>
  <li>`params[0]`: 32 Bytes - hash of the block where this transaction was included. Null when pending.</li>
  <li>`params[1]`: Optional tracer configuration.</li>
</ul>

### Returns

**result** `array`

Traces matching given filter.

**items**

**items\[]** `object`

**properties**

**action** `object`

Details of the trace action.

**properties**

**callType** `string`

Type of call (e.g., "call", "delegatecall", etc.).

**from** `string`

Address that initiated the action.

**gas** `string`

Gas provided for the action (hex string).

**input** `string`

Input data for the action (hex string).

**to** `string`

Recipient address (if applicable).

**value** `string`

Value transferred in Wei (hex string).

**blockHash** `string`

Hash of the block in which this trace occurred.

**blockNumber** `integer`

Block number in which this trace occurred.

**result** `object`

Result of the trace action.

**properties**

**gasUsed** `string`

Gas used during this action (hex string).

**output** `string`

Returned output data (hex string).

**subtraces** `integer`

Number of nested trace steps inside this trace.

**traceAddress** `array`

Path to this trace in the nested trace structure.

**items**

**items\[]** `integer`

**transactionHash** `string`

Hash of the transaction this trace belongs to.

**transactionPosition** `integer`

Index position of the transaction within the block.

**type** `string`

Type of trace (e.g., "call", "create", "suicide").

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "debug_traceBadBlock",
    "params": [
      "",
      {}
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": []
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.