Queries
epoch-status
Where a subnet is in its epoch cycle, in one block-pinned read.
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
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet to query. |
CLI
btcli query epoch-status --netuid <integer> --jsonPython
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.read("epoch_status", netuid=1)