viz.block

Module Contents

class Block

Bases: graphenecommon.block.Block

Inheritance diagram of viz.block.Block
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.

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().

define_classes(self)
class BlockHeader

Bases: graphenecommon.block.BlockHeader

Inheritance diagram of viz.block.BlockHeader
private-bases
define_classes(self)