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

# trace_block

Returns traces created at given block.

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**

`blockNumber` - String - <span style={{color: "red"}}>Required</span> - The block number as a string in hexadecimal format or tags. The supported tag values include:

* `earliest` - For the earliest/genesis block
* `latest` for the latest mined block
* `safe` for the most recent secure block
* `finalized` for the most recent secure block accepted by more than 2/3 of validators

## **Returns**

`array` - The block traces, which have the following fields (all return types are hexadecimal unless otherwise noted):

* `action` - object The ParityTrace action object containing call details
  * `from` - string - The address of the sender
  * `callType` - string - The type of method such as call, staticcall, delegatecall
  * `gas` - string - The gas provided by the sender, encoded as hexadecimal
  * `input` - string - The input data sent along with the transaction
  * `to` - string - The address of the receiver
  * `value` - string - The integer of the value sent with this transaction, encoded as hexadecimal
* `blockHash` - string - The hash of the block where this transaction was in
* `blockNumber` - integer - The block number where this transaction was in
* `result` - object - The ParityTrace result object containing execution outcome
  * `gasUsed` - string -The amount of gas used by this specific transaction
  * `output` - string - The return value of the contract call, empty if no RETURN executed
* `subtraces` - integer - The number of subtraces (internal calls) made by the transaction
* `traceAddress` - array - The list of addresses where the call executed, including parent addresses and call order
* `transactionHash` - string - The hash of the transaction
* `transactionPosition` - integer - The transaction index position within the block
* `type` - string - The type of the trace, such as call or create
* `error` - string - The error message, if any

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "from": "0x20c8e44efbadd6f1a462977d941abcd58924bd18",
        "callType": "call",
        "gas": "0x0",
        "input": "0x",
        "to": "0xf480341493c46f214b0e260005cf12c17449a0ab",
        "value": "0xe2cf739126400"
      },
      "blockHash": "0x24d7c2b40c47228d22a4f7642a97164c69f13f0096a208ec1c812d7e17eb4652",
      "blockNumber": 48432600,
      "result": {
        "gasUsed": "0x0",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [],
      "transactionHash": "0x6107789e29176dd9c1fef9c2a0bffc9cf65590f3660a9dd614c0e20a65a36aba",
      "transactionPosition": 0,
      "type": "call"
    },
    // ...
    {
      "action": {
        "from": "0xd4db58f65cc967a67449dc1570f408aeb496e5c8",
        "callType": "call",
        "gas": "0x8b90",
        "input": "0xa9059cbb000000000000000000000000ae054f4e67bd9c95844e0152f5face89ee4e7e450000000000000000000000000000000000000000000023b5482ca79b97450164",
        "to": "0xb9cd945141f7d99fd562a6222accde5043350ad4",
        "value": "0x0"
      },
      "blockHash": "0x24d7c2b40c47228d22a4f7642a97164c69f13f0096a208ec1c812d7e17eb4652",
      "blockNumber": 48432600,
      "result": {
        "gasUsed": "0x5770",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      },
      "subtraces": 0,
      "traceAddress": [],
      "transactionHash": "0x86a487d74f726697ffc06cca32975d8217142401ee459a1a604b8174315f2378",
      "transactionPosition": 4,
      "type": "call"
    }
  ]
}
```

<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":"trace_block","params":["0x2e305d8"],"id":1}'
      
  ```
</CodeGroup>


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