viz.converter

Module Contents

class Converter(blockchain_instance=None)

Bases: object

Converter simplifies the handling of different metrics of the blockchain.

Parameters

blockchain_instance (Steemd) – Steemd() instance to use when accessing a RPC

core_per_share(self)

Obtain CORE_TOKEN/SHARES ratio.

shares_to_core(self, shares)

Obtain CORE tokens representation of SHARES.

Parameters

shares (number) – SHARES to convert to CORE

core_to_shares(self, amount)

Obtain SHARES from CORE tokens.

Parameters

amount (number) – amount of CORE tokens to convert