---
title: "debug_traceBlockByHash"
method: POST
path: "/{apiKey}"
---

# debug_traceBlockByHash

`POST /{apiKey}`

## Request

- Base URL: `https://bsc-mainnet.nodereal.io/v1`
- URL: `https://bsc-mainnet.nodereal.io/v1/{apiKey}`
- Auth: none declared

Replays the block that is already present in the database.

## Path parameters

- `apiKey` string, required

## Request body

- object
  - `id` integer
  - `jsonrpc` string
  - `method` 'debug_traceBlockByHash'
  - `params` union[]: 1. String - Block hash for the block to be traced 2. `tracer` Object - Currently only supports `callTracer` (see above for definition)
    - union
      - string: block hash
      - object
        - `tracer` 'callTracer'

## Response `200`

Returns - array of block traces

- object
  - `id` integer
  - `jsonrpc` string
  - `result` object[]: array of block traces
    - `type` string: CALL or CREATE
    - `from` string: 20 Bytes - address of the sender
    - `to` string: 20 Bytes - address of the receiver. null when its a contract creation transaction
    - `value` string: amount of value for transfer (in hex)
    - `gas` string: amount of gas provided for the call (in hex)
    - `gasUsed` string: amount of gsa used during the call (in hex)
    - `input` string: call data
    - `output` string: return data
    - `error` string: error, if any
    - `revertReason` string: solidity revert reason, if any
    - `calls` unknown[]: list of sub-calls
      - unknown

---

[API](https://skmtc.dev/nodereal/apis/debug-traceblockbyhash.md) - [All operations](https://skmtc.dev/nodereal/apis/debug-traceblockbyhash/llms.txt) - [OpenAPI document](https://skmtc.dev/nodereal/apis/debug-traceblockbyhash/revisions/e2e49d52fb19?raw)
