bitshares.aio.wallet module¶
-
class
bitshares.aio.wallet.Wallet(*args, **kwargs)[source]¶ Bases:
bitshares.instance.BlockchainInstance,bitshares.aio.wallet.Wallet-
bitshares¶ Alias for the specific blockchain.
-
blockchain¶
-
blockchain_instance_class¶
-
chain¶ Short form for blockchain (for the lazy)
-
getActiveKeyForAccount(name)[source]¶ Obtain owner Active Key for an account from the wallet database
-
getAllAccounts(pub)[source]¶ Get the account data for a public key (all accounts found for this public key)
-
getOwnerKeyForAccount(name)[source]¶ Obtain owner Private Key for an account from the wallet database
-
getPrivateKeyForPublicKey(pub)[source]¶ Obtain the private key for a given public key
Parameters: pub (str) – Public Key
-
getPublicKeys(current=False)[source]¶ Return all installed public keys
Parameters: current (bool) – If true, returns only keys for currently connected blockchain
-
get_instance_class()¶ Should return the Chain instance class, e.g. bitshares.BitShares
-
classmethod
inject(cls)¶
-
prefix¶
-
rpc¶
-
setKeys(loadkeys)[source]¶ This method is strictly only for in memory keys that are passed to Wallet with the
keysargument
-
classmethod
set_shared_blockchain_instance(instance)¶ This method allows us to override default instance for all users of
SharedInstance.instance.Parameters: instance (chaininstance) – Chain instance
-
classmethod
set_shared_config(config)¶ This allows to set a config that will be used when calling
shared_blockchain_instanceand allows to define the configuration without requiring to actually create an instance
-
set_shared_instance()¶ This method allows to set the current instance as default
-
shared_blockchain_instance()¶ This method will initialize
SharedInstance.instanceand return it. The purpose of this method is to have offer single default instance that can be reused by multiple classes.
-