privex.steemengine.objects.TokenMetadata¶
- class TokenMetadata(url: str = '', icon: str = '', desc: str = '', raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>)[source]¶
Represents the
metadata
field on a token object on SteemEngine- __init__(url: str = '', icon: str = '', desc: str = '', raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>) None ¶
Methods
__init__
([url, icon, desc, raw_data])from_dict
(obj)from_list
(obj_list)get
(key[, fallback])Attributes
desc
A long description explaining the token
icon
A full URL to the icon for the token
url
The official website for the token
raw_data
The raw, unmodified data that was passed as kwargs, as a dictionary