bittensor.core.chain_data.stake_info#

Classes#

StakeInfo

Dataclass for representing stake information linked to hotkey and coldkey pairs.

Module Contents#

class bittensor.core.chain_data.stake_info.StakeInfo#

Bases: bittensor.core.chain_data.info_base.InfoBase

Dataclass for representing stake information linked to hotkey and coldkey pairs.

Variables:
  • hotkey_ss58 (str) – The SS58 encoded hotkey address.

  • coldkey_ss58 (str) – The SS58 encoded coldkey address.

  • stake (Balance) – The stake associated with the hotkey-coldkey pair, represented as a Balance object.

coldkey_ss58: str#
drain: int#
emission: bittensor.utils.balance.Balance#
classmethod from_dict(decoded)#

Returns a StakeInfo object from decoded chain data.

Parameters:

decoded (dict)

Return type:

StakeInfo

hotkey_ss58: str#
is_registered: bool#
locked: bittensor.utils.balance.Balance#
netuid: int#
stake: bittensor.utils.balance.Balance#