Queries

block-time

Seconds per block, detected from the chain (12.0 mainnet, 0.25 fast-blocks).

View as Markdown

Category: Chain

Parameters

This read takes no parameters.

CLI

btcli query block-time --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.chain.block_time()

Or dispatch by name, as an agent would:

result = sub.read("block_time")

Async is the same surface awaited: async with bt.Subtensor() as client:.