Queries

next-epoch-start-block

Block at which the subnet's next epoch is expected to fire, or None if tempo is 0.

View as Markdown

Chain-computed: LastEpochBlock + tempo, pulled earlier by any pending owner-triggered epoch. This is the source of truth — the epoch schedule is stateful, so the legacy client-side modular formula is wrong on subnets whose tempo changed or whose owner triggered an epoch.

Category: Epochs & timing

Parameters

ParameterTypeDescription
netuidintegerSubnet to query.

CLI

btcli query next-epoch-start-block --netuid <integer> --json

Python

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.read("next_epoch_start_block", netuid=1)