---
title: "Block_timestamp — definition | Nuri Glossary"
description: "The time field a miner writes into a block header, constrained by the median of recent blocks rather than by any authoritative clock."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/block-timestamp"
---

# Block_timestamp

The time field a miner writes into a block header, constrained by the median of recent blocks rather than by any authoritative clock.

## Basically

The time a miner stamps into a block header, which the protocol checks only loosely.

## Key Takeaways

- A header carries a Unix time chosen by the miner, bounded by the median of the last eleven blocks and by network-adjusted time.
- The median-past rule stops time from moving backwards and keeps difficulty honest.
- Timestamps are approximate, so they are safe for ordering but not for precise dating.

## What the Field Is

Every block header has a four-byte timestamp. It is not a trusted clock reading: the miner writes it, and nodes only check that it is later than the median of the previous eleven blocks and no more than two hours ahead of their own adjusted time.
Blocks are ordered by their links, not by timestamp, so a wrong clock never reorders the chain.

## Consensus Rules That Use It

The median-past check is what stops a miner from dating blocks backwards, and difficulty retargets use the timestamps of the period to estimate elapsed time.
That means a miner who can bias timestamps can nudge difficulty slightly, which is why the two-hour window is kept tight.

## Things You Cannot Use It For

Contract deadlines and legal dates need a real clock, because timestamps can be off by minutes and can be reordered within limits.
Very early blocks show the looseness plainly: the genesis timestamp predates the actual start, and some early blocks carry dates days off the real ones.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
