A block usually contains any transaction. The block itself can be identified by the block height. Forge CLI provides multiple syntaxes to query the block information. forge help block To list these syntaxes:

Query a specific block height block

forge block 12 You can query the block information with a block height of 12 and get the following results:

It is not difficult to see that the block with a block height of 12 does not contain any transactions.

Query details of a specific block height

forge block 12 --show-txs You can query the block information with a block height of 12 and type out the transaction information.

Querying certain blocks

forge block 1...4, Query all blocks with a block height from 1 to 4.

Real-time query new

forge block -f Used to query the speed of real-time output.