Queries

block-info

A block's hash, timestamp, and extrinsics (as module.function summaries).

View as Markdown

Programmatic callers wanting the fully decoded extrinsics and raw header should use client.block_info() instead.

Category: Chain

Parameters

ParameterTypeDescription
blockintegerBlock number to describe.

CLI

btcli query block-info --block <integer> --json

Python

Typed namespace method (autocomplete, signature help):

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.chain.block_info(block=1)

Or dispatch by name, as an agent would:

result = await client.read("block_info", block=1)