Queries
block-info
A block's hash, timestamp, and extrinsics (as module.function summaries).
Programmatic callers wanting the fully decoded extrinsics and raw header
should use client.block_info() instead.
Category: Chain
Parameters
| Parameter | Type | Description |
|---|---|---|
block | integer | Block number to describe. |
CLI
btcli query block-info --block <integer> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.chain.block_info(block=1)Or dispatch by name, as an agent would:
result = sub.read("block_info", block=1)Async is the same surface awaited: async with bt.Subtensor() as client:.