Skip to content

@receipts:tx.timestamp

Unix timestamp (seconds) of the block a transaction was mined in. Compare against @date values.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: number

@receipts:tx.timestamp(hash chain?)
NameTypeDescription
hashbytes32Transaction hash
[chain]chainChain to look on (default: current chain)
# Read the timestamp a transaction was mined at
set $when @receipts:tx.timestamp(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)

Compare against @date values, e.g. @date(now).