> ## 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](/nodeapi/about/billing).

***

<Info>
  This method is served by nanoreth, the HyperEVM archive client, and works for any block back to genesis. On blocks that carry a HyperCore deposit, block-level traces include the deposit as their first entry; see [Overview](/nodeapi/hyperliquid/overview).
</Info>

## **Parameters**

`block` - String - <span style={{color: "red"}}>Required</span> - The RLP-encoded block as a hexadecimal string, for example the result of [debug\_getRawBlock](/nodeapi/hyperliquid/debug-api/debug_getrawblock).

`object` - Object - <span style={{color: "red"}}>Required</span> - The tracer object, same as [debug\_traceBlockByNumber](/nodeapi/hyperliquid/debug-api/debug_traceblockbynumber): `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": "0x6b9e773128f453f5c2c60935ee2de2cbc5390a24",
                "gas": "0x30d40",
                "gasUsed": "0xaff7",
                "to": "0xb88339cb7199b77e23db6e890353e22632ba630f",
                "input": "0xa9059cbb000000000000000000000000c20699185c15d0a2fd65779bb5d69f5b0b113c000000000000000000000000000000000000000000000000000000000000f723a3",
                "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
                "calls": [
                    {
                        "from": "0xb88339cb7199b77e23db6e890353e22632ba630f",
                        "gas": "0x29286",
                        "gasUsed": "0x3f87",
                        "to": "0x003f73f58ca78880da3642c5cb71d7459b3fe4f8",
                        "input": "0xa9059cbb000000000000000000000000c20699185c15d0a2fd65779bb5d69f5b0b113c000000000000000000000000000000000000000000000000000000000000f723a3",
                        "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
                        "value": "0x0",
                        "type": "DELEGATECALL"
                    }
                ],
                "value": "0x0",
                "type": "CALL"
            },
            "txHash": "0x8f0f99ef891425ef911a145424e2bb7295a20968fc84efb5767a853d609e6c69"
        },
        {
            "result": {
                "from": "0x2727e2620a370ec52069fe2d49db9bad81a0e7ef",
                "gas": "0x23668",
                "gasUsed": "0x9571",
                "to": "0x681e908b8ab57c49c74d770f369754ccc3e1ae09",
                "input": "0x6ab660b301e42892f7000000000000000000000000000000000000000001a0d85c006c0201e4e056d6000000000000000000000000000000000000000001a0d85c006c03",
                "value": "0x0",
                "type": "CALL"
            },
            "txHash": "0x00aa90442bf9b8331b8f03d6b63f405a515eb39702681b4be0af5fed41558132"
        },
        {
            "result": {
                "from": "0x2beafdd68357c1f57d912acb4328be1a3f00d3ff",
                "gas": "0xc082e",
                "gasUsed": "0xbb5e0"
    ...
```

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


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