:mod:`viz.block` ================ .. py:module:: viz.block Module Contents --------------- .. py:class:: Block Bases: :class:`graphenecommon.block.Block` .. autoapi-inheritance-diagram:: viz.block.Block :parts: 1 :private-bases: Read a single block from the chain. :param int block: block number :param viz.viz.Client blockchain_instance: Client instance :param bool lazy: Use lazy loading Instances of this class are dictionaries that come with additional methods (see below) that allow dealing with a block and it's corresponding functions. .. code-block:: python from viz.block import Block block = Block(1) print(block) .. note:: This class comes with its own caching function to reduce the load on the API server. Instances of this class can be refreshed with ``Account.refresh()``. .. method:: define_classes(self) .. py:class:: BlockHeader Bases: :class:`graphenecommon.block.BlockHeader` .. autoapi-inheritance-diagram:: viz.block.BlockHeader :parts: 1 :private-bases: .. method:: define_classes(self)