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

# trace_block

> Returns traces created at given block.

### Parameters

**chainId** `string` *required* (default: 10200)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: trace\_block)

JSON-RPC method name.

**params** `object` *required*

Parameters for trace\_block method: \[defaultBlock]

Positional parameters for `trace_block`:

<ul>
  <li>`params[0]`: Integer block number.</li>
  <li>`params[1]`: Block tag: "earliest", "latest", or "pending".</li>
</ul>

### Returns

**result** `array`

Array - Block traces.

**items**

**items\[]** `object`

Single block-level trace result.

**properties**

**action** `object`

Details of the action performed (e.g., call, create, suicide).

**properties**

**callType** `string`

Type of call (e.g., call, delegatecall, staticcall, etc.).

**from** `string`

Address that initiated the action.

**to** `string`

Recipient address (if applicable).

**input** `string`

Input data sent along with the call.

**value** `string`

Value transferred in Wei.

**init** `string`

Contract creation code (only for create).

**address** `string`

Contract address created or affected.

**balance** `string`

Balance involved in suicide actions.

**result** `object`

Result of the action (if successful).

**properties**

**gasUsed** `string`

Gas used for this action.

**output** `string`

Returned data (if any).

**code** `string`

Deployed contract code (if applicable).

**address** `string`

Address created (for contract creations).

**subtraces** `integer`

Number of nested trace steps inside this one.

**traceAddress** `array`

Path to this trace in nested trace structure.

**items**

**items\[]** `integer`

**type** `string`

Type of trace (e.g., call, create, suicide).

**error** `string`

Error message if the trace step failed.

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10200 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "trace_block",
    "params": [
      "0x2ed119"
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "callType": "call",
        "from": "0xaa7b131dc60b80d3cf5e59b5a21a666aa039c951",
        "gas": "0x0",
        "input": "0x",
        "to": "0xd40aba8166a212d6892125f079c33e6f5ca19814",
        "value": "0x4768d7effc3fbe"
      },
      "blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
      "blockNumber": 3068185,
      "result": {
        "gasUsed": "0x0",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [],
      "transactionHash": "0x07da28d752aba3b9dd7060005e554719c6205c8a3aea358599fc9b245c52f1f6",
      "transactionPosition": 0,
      "__truncated": true
    }
  ]
}
```


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