Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 903 Bytes

cast-block.md

File metadata and controls

50 lines (31 loc) · 903 Bytes

cast block

NAME

cast-block - Get information about a block.

SYNOPSIS

cast block [options] [block]

DESCRIPTION

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.

OPTIONS

-f field
--field field
     If specified, only get the given field of the block.

{{#include ../common/display-options.md}}

RPC Options

{{#include ../common/rpc-url-option.md}}

{{#include common-options.md}}

EXAMPLES

  1. Get the latest block:

    cast block
  2. Get the finalized block:

    cast block finalized
  3. Get the hash of the latest block:

    cast block latest -f hash

SEE ALSO

cast, cast basefee, cast age