Queries

difficulty

Current PoW registration difficulty for a subnet.

View as Markdown

Category: Hyperparameters

Parameters

ParameterTypeDescription
netuidintegerSubnet to query.

CLI

btcli query difficulty --netuid <integer> --json

Python

Typed namespace method (autocomplete, signature help):

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.hyperparameters.difficulty(netuid=1)

Or dispatch by name, as an agent would:

result = await client.read("difficulty", netuid=1)