bittensor.core.chain_data.neuron_info_lite#

Classes#

NeuronInfoLite

NeuronInfoLite is a dataclass representing neuron metadata without weights and bonds.

Module Contents#

class bittensor.core.chain_data.neuron_info_lite.NeuronInfoLite#

Bases: bittensor.core.chain_data.info_base.InfoBase

NeuronInfoLite is a dataclass representing neuron metadata without weights and bonds.

Variables:
  • hotkey (str) – The hotkey string for the neuron.

  • coldkey (str) – The coldkey string for the neuron.

  • uid (int) – A unique identifier for the neuron.

  • netuid (int) – Network unique identifier for the neuron.

  • active (int) – Indicates whether the neuron is active.

  • stake (Balance) – The stake amount associated with the neuron.

  • stake_dict (dict) – Mapping of coldkey to the amount staked to this Neuron.

  • total_stake (Balance) – Total amount of the stake.

  • rank (float) – The rank of the neuron.

  • emission (float) – The emission value of the neuron.

  • incentive (float) – The incentive value of the neuron.

  • consensus (float) – The consensus value of the neuron.

  • trust (float) – Trust value of the neuron.

  • validator_trust (float) – Validator trust value of the neuron.

  • dividends (float) – Dividends associated with the neuron.

  • last_update (int) – Timestamp of the last update.

  • validator_permit (bool) – Indicates if the neuron has a validator permit.

  • prometheus_info (Optional[PrometheusInfo]) – Prometheus information associated with the neuron.

  • axon_info (Optional[AxonInfo]) – Axon information associated with the neuron.

  • pruning_score (int) – The pruning score of the neuron.

  • is_null (bool) – Indicates whether the neuron is null.

get_null_neuron()#

Returns a NeuronInfoLite object representing a null neuron.

Return type:

NeuronInfoLite

list_from_vec_u8()#

Decodes a bytes object into a list of NeuronInfoLite instances.

active: int#
axon_info: bittensor.core.chain_data.axon_info.AxonInfo | None#
coldkey: str#
consensus: float#
dividends: float#
emission: float#
static get_null_neuron()#

Returns a null NeuronInfoLite instance.

Return type:

NeuronInfoLite

hotkey: str#
incentive: float#
is_null: bool = False#
last_update: int#
netuid: int#
prometheus_info: bittensor.core.chain_data.prometheus_info.PrometheusInfo | 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#