bittensor.core.chain_data.neuron_info#
Classes#
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.InfoBaseRepresents 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.
- axon_info: bittensor.core.chain_data.axon_info.AxonInfo | None = None#
- 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:
neuron_lite (bittensor.core.chain_data.neuron_info_lite.NeuronInfoLite) – A lite version of the neuron containing basic attributes.
weights_as_dict (dict[int, list[tuple[int, int]]]) – A dictionary where the key is the UID and the value is a list of weight tuples associated with the neuron.
bonds_as_dict (dict[int, list[tuple[int, int]]]) – A dictionary where the key is the UID and the value is a list of bond tuples associated with the neuron.
- Returns:
An instance of NeuronInfo populated with the provided weights and bonds.
- Return type:
- prometheus_info: bittensor.core.chain_data.prometheus_info.PrometheusInfo | None = None#
- stake_dict: dict[str, bittensor.utils.balance.Balance]#
- total_stake: bittensor.utils.balance.Balance#