@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
Syntax
Section titled “Syntax”@receipts:tx.timestamp(hash chain?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
hash | bytes32 | Transaction hash |
[chain] | chain | Chain to look on (default: current chain) |
Examples
Section titled “Examples”# Read the timestamp a transaction was mined atset $when @receipts:tx.timestamp(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)Compare against @date values, e.g. @date(now).
See Also
Section titled “See Also”- @receipts:tx.block — block a transaction was mined in
- @receipts:tx — full transaction summary