Instances

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

from bitshares.instance import shared_bitshares_instance

account = Account("xeroc")
# is equivalent with
account = Account("xeroc", bitshares_instance=shared_bitshares_instance())
instance.shared_bitshares_instance()

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

instance.set_shared_bitshares_instance(bitshares_instance)

This method allows us to override default bitshares instance for all users of _shared_bitshares_instance.

Parameters:bitshares_instance (bitshares.bitshares.BitShares) – BitShares instance