Instances

Default instance to be used when no peerplays_instance is given to the Objects!

from peerplays.instance import shared_peerplays_instance

account = Account("xeroc")
# is equivalent with
account = Account("xeroc", peerplays_instance=shared_peerplays_instance())
instance.shared_peerplays_instance()

This method will initialize _shared_peerplays_instance and return it. The purpose of this method is to have offer single default peerplays instance that can be reused by multiple classes.

instance.set_shared_peerplays_instance(peerplays_instance)

This method allows us to override default peerplays instance for all users of _shared_peerplays_instance.

Parameters:peerplays_instance (peerplays.peerplays.PeerPlays) – PeerPlays instance