Queries

epoch-status

Where a subnet is in its epoch cycle, in one block-pinned read.

View as Markdown

Bundles tempo, the last epoch run, the chain-computed next start block, and the remaining blocks/seconds (seconds use the chain's detected block time, so they are correct on fast-blocks chains too). pending_epoch_at is the block of an owner-triggered epoch, or None when none is pending.

Category: Epochs & timing

Parameters

ParameterTypeDescription
netuidintegerSubnet to query.

CLI

btcli query epoch-status --netuid <integer> --json

Python

import bittensor as sub

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