bittensor.core.chain_data.delegate_info#

Classes#

DelegateInfo

Dataclass for delegate information. For a lighter version of this class, see DelegateInfoLite.

Module Contents#

class bittensor.core.chain_data.delegate_info.DelegateInfo[source]#

Dataclass for delegate information. For a lighter version of this class, see DelegateInfoLite.

Parameters:
  • hotkey_ss58 (str) – Hotkey of the delegate for which the information is being fetched.

  • total_stake (int) – Total stake of the delegate.

  • nominators (list[tuple[str, int]]) – List of nominators of the delegate and their stake.

  • take (float) – Take of the delegate as a percentage.

  • owner_ss58 (str) – Coldkey of the owner.

  • registrations (list[int]) – List of subnets that the delegate is registered on.

  • validator_permits (list[int]) – List of subnets that the delegate is allowed to validate on.

  • return_per_1000 (int) – Return per 1000 TAO, for the delegate over a day.

  • total_daily_return (int) – Total daily return of the delegate.

classmethod delegated_list_from_vec_u8(vec_u8)[source]#
Parameters:

vec_u8 (bytes)

Return type:

list[tuple[DelegateInfo, bittensor.utils.balance.Balance]]

classmethod from_vec_u8(vec_u8)[source]#
Parameters:

vec_u8 (bytes)

Return type:

Optional[DelegateInfo]

hotkey_ss58: str#
classmethod list_from_vec_u8(vec_u8)[source]#
Parameters:

vec_u8 (bytes)

Return type:

list[DelegateInfo]

nominators: list[tuple[str, bittensor.utils.balance.Balance]]#
owner_ss58: str#
registrations: list[int]#
return_per_1000: bittensor.utils.balance.Balance#
take: float#
total_daily_return: bittensor.utils.balance.Balance#
total_stake: bittensor.utils.balance.Balance#
validator_permits: list[int]#