bittensor.core.chain_data.neuron_info#

Classes#

NeuronInfo

Represents the metadata of a neuron including keys, UID, stake, rankings, and other attributes.

Module Contents#

class bittensor.core.chain_data.neuron_info.NeuronInfo[source]#

Bases: bittensor.core.chain_data.info_base.InfoBase

Represents the metadata of a neuron including keys, UID, stake, rankings, and other attributes.

Variables:
  • hotkey – The hotkey associated with the neuron.

  • coldkey – The coldkey associated with the neuron.

  • uid – The unique identifier for the neuron.

  • netuid – The network unique identifier for the neuron.

  • active – The active status of the neuron.

  • stake – The balance staked to this neuron.

  • stake_dict – A dictionary mapping coldkey to the amount staked.

  • total_stake – The total amount of stake.

  • rank – The rank score of the neuron.

  • emission – The emission rate.

  • incentive – The incentive value.

  • consensus – The consensus score.

  • trust – The trust score.

  • validator_trust – The validation trust score.

  • dividends – The dividends value.

  • last_update – The timestamp of the last update.

  • validator_permit – Validator permit status.

  • weights – List of weights associated with the neuron.

  • bonds – List of bonds associated with the neuron.

  • pruning_score – The pruning score of the neuron.

  • prometheus_info – Information related to Prometheus.

  • axon_info – Information related to Axon.

  • is_null – Indicator if this is a null neuron.

active: int#
axon_info: bittensor.core.chain_data.axon_info.AxonInfo | None = None#
bonds: list[list[int]]#
coldkey: str#
consensus: float#
dividends: float#
emission: float#
classmethod from_weights_bonds_and_neuron_lite(neuron_lite, weights_as_dict, bonds_as_dict)[source]#

Creates an instance of NeuronInfo from NeuronInfoLite and dictionaries of weights and bonds.

Parameters:
Returns:

An instance of NeuronInfo populated with the provided weights and bonds.

Return type:

NeuronInfo

static get_null_neuron()[source]#

Returns a null NeuronInfo instance.

Return type:

NeuronInfo

hotkey: str#
incentive: float#
is_null: bool = False#
last_update: int#
netuid: int#
prometheus_info: bittensor.core.chain_data.prometheus_info.PrometheusInfo | None = None#
pruning_score: int#
rank: float#
stake: bittensor.utils.balance.Balance#
stake_dict: dict[str, bittensor.utils.balance.Balance]#
total_stake: bittensor.utils.balance.Balance#
trust: float#
uid: int#
validator_permit: bool#
validator_trust: float#
weights: list[tuple[int, int]]#