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

# debug_traceBlock

Returns the traces of every transaction in an RLP-encoded block, replayed with the given tracer.

This method will use `80` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

> [!NOTE]
>
> Traces need the state of the traced block, so World Chain Mainnet can trace the last 10,064 blocks, about 5.6 hours at World Chain's 2-second block time. Older blocks return JSON-RPC error `-32603` with a message that contains `insufficient changesets to revert to block`.

## **Parameters**

`block` - String - Required - The RLP-encoded block as a hexadecimal string. World Chain Mainnet doesn't serve `debug_getRawBlock`, so encode the block yourself or use [debug\_traceBlockByNumber](https://docs.validationcloud.io/nodeapi/worldchain/debug-api/debug_traceblockbynumber.md), which takes a block number.

`object` - Object - Required - The tracer object, same as [debug\_traceBlockByNumber](https://docs.validationcloud.io/nodeapi/worldchain/debug-api/debug_traceblockbynumber.md): `tracer` (`callTracer` or `prestateTracer`), optional `tracerConfig` and `timeout`.

## **Returns**

`array` - One entry per transaction in the block, each with a `txHash` and a `result` object in the shape the chosen tracer produces.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "result": {
        "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
        "gas": "0xf4240",
        "gasUsed": "0xb4a2",
        "to": "0x4200000000000000000000000000000000000015",
        "input": "0x3db6be2b000021f9000dd3ef0000000000000001000000006b12988b000000000195375b00000000000000000000000000000000000000000000000000000000...",
        "value": "0x0",
        "type": "CALL"
      },
      "txHash": "0x3c2ce509c485854992d5de1e47a8202a0b3e93e2270226a5c0a0b80a487e292d"
    },
    {
      "result": {
        "from": "0x009dcf67cc6d08394d72ddff30c14b7012896c29",
        "gas": "0x96cfb",
        "gasUsed": "0x60fd6",
        "to": "0x0000000071727de22e5e9d8baf0edac6f37da032",
        "input": "0x765e827f0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000009dcf67cc6d08394d72ddff30c14b70...",
        "value": "0x0",
        "type": "CALL"
      },
      "txHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce"
    }
  ]
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.worldchain.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"debug_traceBlock","params":["<RLP_ENCODED_BLOCK>", {"tracer":"callTracer"}],"id":1}'
```


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