cast-block - Get information about a block.
cast block
[options] [block]
Get information about a block.
The specified block can be a block number, or any of the tags: earliest
, finalized
, safe
, latest
or pending
. Default to latest
.
-f
field
--field
field
If specified, only get the given field of the block.
{{#include ../common/display-options.md}}
{{#include ../common/rpc-url-option.md}}
{{#include common-options.md}}
-
Get the latest block:
cast block
-
Get the
finalized
block:cast block finalized
-
Get the hash of the latest block:
cast block latest -f hash