> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/monad/rpc-methods/debug/debug_traceblockbyhash.md).

# debug\_traceBlockByHash

Replay a block by hash and return execution traces using the given tracer.

## Request

{% tabs %}
{% tab title="cURL" %}

```bash
curl "https://<your-endpoint>.mainnet.monad.rpcpool.com/<your-token>" -s -X POST \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_traceBlockByHash",
  "params": [
    "<block-hash>",
    {
      "tracer": "callTracer"
    }
  ]
}'
```

{% endtab %}
{% endtabs %}

## Parameters

| Parameter    | Type   | Required | Description                                                                                                                                 |
| ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `block_hash` | string | Yes      | 32-byte block hash (hex-encoded).                                                                                                           |
| `tracer`     | object | No       | Tracer configuration: `tracer` (string) and optional `tracerConfig` (object). Defaults to `callTracer`; `prestateTracer` is also supported. |

## Response

With `callTracer`, an array with one entry per transaction in the block: its hash and its call frame.

```json
[
  {
    "txHash": "0x...",
    "result": {
      "type": "CALL",
      "from": "0x...",
      "to": "0x...",
      "value": "0x0",
      "gas": "0x...",
      "gasUsed": "0x...",
      "input": "0x...",
      "output": "0x..."
    }
  }
]
```

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
