Queries
blocks-since-last-step
Blocks since the subnet's last epoch step ran.
Category: Epochs & timing
Parameters
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet to query. |
CLI
btcli query blocks-since-last-step --netuid <integer> --jsonPython
Typed namespace method (autocomplete, signature help):
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.epochs.blocks_since_last_step(netuid=1)Or dispatch by name, as an agent would:
result = await client.read("blocks_since_last_step", netuid=1)