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

# Inspect Chain Head

> Show latest, safe, and finalized block heads.

Use `chain head` to see the node's latest, safe, and finalized block heads in one report.

## Command

```sh theme={null}
rex chain head
```

## Example Output

```text theme={null}
CHAIN HEAD

LABEL            NUMBER HASH                                                               TIMESTAMP      TXS
latest              128 0xabc...                                                          1724300000        2
safe                128 0xabc...                                                          1724300000        2
finalized           120 0xdef...                                                          1724299900        0
```

If a node does not return `safe` or `finalized`, the row is shown as unavailable.

## How It Works

The command calls `eth_getBlockByNumber` with these tags:

* `latest`
* `safe`
* `finalized`

The latest block is required. Safe and finalized are optional because local dev nodes or older RPC configurations may not return them.


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