Queries

collateral-policy

A subnet's collateral configuration.

View as Markdown

lock_share is the fraction of the registration price locked as collateral instead of burned (0 disables collateral); drain_ratio is the alpha released per alpha of miner incentive earned, snapshot per miner at registration.

Category: Mining & collateral

Parameters

ParameterTypeDescription
netuidintegerSubnet to query.

CLI

btcli query collateral-policy --netuid <integer> --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.collateral.collateral_policy(netuid=1)

Or dispatch by name, as an agent would:

result = sub.read("collateral_policy", netuid=1)

Async is the same surface awaited: async with bt.Subtensor() as client:.