privex.steemengine.objects.Token

class Token(symbol: str, name: str = '', issuer: str = '', metadata: ~typing.Optional[~typing.Union[~privex.steemengine.objects.TokenMetadata, str, dict, list]] = None, precision: int = 0, max_supply: ~decimal.Decimal = <factory>, circulating_supply: ~decimal.Decimal = <factory>, supply: ~decimal.Decimal = <factory>, raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>)[source]

Represents a token’s information on SteemEngine

__init__(symbol: str, name: str = '', issuer: str = '', metadata: ~typing.Optional[~typing.Union[~privex.steemengine.objects.TokenMetadata, str, dict, list]] = None, precision: int = 0, max_supply: ~decimal.Decimal = <factory>, circulating_supply: ~decimal.Decimal = <factory>, supply: ~decimal.Decimal = <factory>, raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>) None

Methods

__init__(symbol[, name, issuer, metadata, ...])

from_dict(obj)

from_list(obj_list)

get(key[, fallback])

Attributes

issuer

The username of the issuer/owner of the token on SteemEngine, e.g.

metadata

Metadata for the token, including the url, icon and desc (description)

name

The full name for the token, e.g.

precision

The precision / amount of decimal places the token uses

symbol

The short symbol for the token, e.g.

max_supply

The maximum amount of tokens that can ever be printed

circulating_supply

Amount of tokens that are circulating, i.e. have not been burned.

supply

Amount of tokens in existence

raw_data

The raw, unmodified data that was passed as kwargs, as a dictionary