cast-age - Get the timestamp of a block.
cast age
[options]
Get the timestamp of a block.
-B
block
--block
block
The block height you want to query at.
Can be a block number, or any of the tags: earliest
, latest
or pending
.
{{#include ../common/rpc-url-option.md}}
{{#include common-options.md}}
-
Get the timestamp of the latest block:
cast age latest
-
Get the timestamp of the genesis block:
cast age 1