cast-age - Get the timestamp of a block.
cast age
[options] [block]
Get the timestamp of a block.
The specified block can be a block number, or any of the tags: earliest
, finalized
, safe
, latest
or pending
. Default to latest
.
{{#include ../common/rpc-url-option.md}}
{{#include common-options.md}}
-
Get the timestamp of the latest block:
cast age
-
Get the timestamp of the genesis block:
cast age 1