---
title: "Get Trace Block"
method: POST
path: "/node/rest/trace_block"
tags: ["node"]
---

# Get Trace Block

`POST /node/rest/trace_block`

## Request

- Base URL: `https://api.watchdata.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.watchdata.io/node/rest/trace_block`
- Auth: none declared

## Request body

- BlockNumberIn
  - `number` union, required
    - integer
    - string

## Response `200`

Successful Response

- Trace[], nullable
  - `action` Action, required
    - `callType` string, nullable
    - `from` string, nullable, required
    - `gas` string, nullable
    - `init` string, nullable
    - `input` string, nullable
    - `to` string, nullable
    - `author` string, nullable
    - `rewardType` string, nullable
    - `value` string, nullable
    - `address` string, nullable
    - `balance` string, nullable
    - `refundAddress` string, nullable
  - `result` Result
    - `gasUsed` string, nullable
    - `output` string, nullable
    - `address` string, nullable
    - `code` string, nullable
  - `error` string, nullable
  - `subtraces` integer, required
  - `traceAddress` integer[], required
  - `transactionHash` string, nullable
  - `transactionPosition` integer, nullable
  - `type` string, required
  - `blockHash` string, required
  - `blockNumber` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/watchdata/apis/watchdata-api.md) - [All operations](https://skmtc.dev/watchdata/apis/watchdata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/watchdata/apis/watchdata-api/revisions/8ce15acc50a3?raw)
