bittensor.core.chain_data.ip_info#
Classes#
Dataclass representing IP information. |
Module Contents#
- class bittensor.core.chain_data.ip_info.IPInfo#
Dataclass representing IP information.
- Variables:
ip – The IP address as a string.
ip_type – The type of the IP address (e.g., IPv4, IPv6).
protocol – The protocol associated with the IP (e.g., TCP, UDP).
- encode()#
Returns a dictionary of the IPInfo object that can be encoded.
- classmethod from_parameter_dict(parameter_dict)#
Creates a IPInfo instance from a parameter dictionary.