Synopsis
Subcommands
cowboy block by-height
Retrieve a block by its height.
Behavior:
- Query the RPC endpoint for the block at the given height.
- Print block details (hash, height, timestamp, transaction count).
| Flag | Default | Description |
|---|---|---|
--height | Required | Block height (integer) |
cowboy block by-hash
Retrieve a block by its hash.
Behavior:
- Query the RPC endpoint for the block with the given hash.
- Print block details.
| Flag | Default | Description |
|---|---|---|
--hash | Required | Block hash (hex) |
cowboy block latest
Retrieve the latest block.
Behavior:
- Query the RPC endpoint for the latest block.
- Print block details.
Edge Cases
- If the requested height doesn’t exist, print
Block not found. - All subcommands are read-only and do not require a private key.

