Queries

channel-commitment

One hotkey's independent channel commitment, or None when absent.

View as Markdown

Reads the v2 runtime API and decodes the returned SCALE registration. On a node without v2, reads the equivalent channel storage instead; both paths distinguish this target from the legacy commitment read. The revealed list reports plaintext and reveal blocks even after the active record is removed.

Category: Identity & commitments

Parameters

ParameterTypeDescription
netuidintegerSubnet containing the mechanism and hotkey.
mechidintegerMechanism whose independent channel to read.
channelintegerIndependent channel index (0..255).
hotkey_ss58stringHotkey whose channel commitment to read.

CLI

btcli query channel-commitment --netuid <integer> --mechid <integer> --channel <integer> --hotkey <ss58|name> --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.identity.channel_commitment(netuid=1, mechid=1, channel=1, hotkey_ss58="5F...")

Or dispatch by name, as an agent would:

result = sub.read("channel_commitment", netuid=1, mechid=1, channel=1, hotkey_ss58="5F...")

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

On-chain implementation

Every file is browsable under /code exactly as built into the runtime.