# blocks-since-last-step (/docs/query/blocks-since-last-step)

**Category:** Epochs & timing

## Parameters [#parameters]

| Parameter | Type    | Description      |
| --------- | ------- | ---------------- |
| `netuid`  | integer | Subnet to query. |

## CLI [#cli]

```bash
btcli query blocks-since-last-step --netuid <integer> --json
```

## Python [#python]

Typed namespace method (autocomplete, signature help):

```python
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:

```python
result = await client.read("blocks_since_last_step", netuid=1)
```
