peerplays.instance module

class peerplays.instance.SharedInstance

Bases: object

config = {}
instance = None

Clear Caches


This allows to set a config that will be used when calling shared_bitshares_instance and allows to define the configuration without requiring to actually create an instance


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

Parameters:peerplays_instance (peerplays.Peerplays) – Peerplays instance

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