cast-block - Get information about a block.
cast block
[options] --block
block
Get information about a block.
If field is specified, then only the given field of the block is displayed.
-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
.
-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 --block latest
-
Get the hash of the latest block:
cast block --block latest --field hash