peerplays.wallet module¶
-
class
peerplays.wallet.
Wallet
(*args, **kwargs)¶ Bases:
peerplays.instance.BlockchainInstance
,peerplays.wallet.Wallet
-
addPrivateKey
(wif)¶ Add a private key to the wallet database
-
blockchain
¶
-
blockchain_instance_class
¶
-
chain
¶ Short form for blockchain (for the lazy)
-
changePassphrase
(new_pwd)¶ Change the passphrase for the wallet database
-
create
(pwd)¶ Alias for newWallet()
-
created
()¶ Do we have a wallet database already?
-
define_classes
()¶ Needs to define instance variables that provide classes
-
getAccountFromPrivateKey
(wif)¶ Obtain account name from private key
-
getAccountFromPublicKey
(pub)¶ Obtain the first account name from public key
-
getAccounts
()¶ Return all accounts installed in the wallet database
-
getAccountsFromPublicKey
(pub)¶ Obtain all accounts associated with a public key
-
getActiveKeyForAccount
(name)¶ Obtain owner Active Key for an account from the wallet database
-
getAllAccounts
(pub)¶ Get the account data for a public key (all accounts found for this public key)
-
getKeyType
(account, pub)¶ Get key type
-
getMemoKeyForAccount
(name)¶ Obtain owner Memo Key for an account from the wallet database
-
getOwnerKeyForAccount
(name)¶ Obtain owner Private Key for an account from the wallet database
-
getPrivateKeyForPublicKey
(pub)¶ Obtain the private key for a given public key
Parameters: pub (str) – Public Key
-
getPublicKeys
(current=False)¶ 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. peerplays.PeerPlays
-
classmethod
inject
(cls)¶
-
is_encrypted
()¶ Is the key store encrypted?
-
lock
()¶ Lock the wallet database
-
locked
()¶ Is the wallet database locked?
-
newWallet
(pwd)¶ Create a new wallet database
-
peerplays
¶ Alias for the specific blockchain
-
prefix
¶
-
privatekey
(key)¶
-
publickey_from_wif
(wif)¶
-
removeAccount
(account)¶ Remove all keys associated with a given account
-
removePrivateKeyFromPublicKey
(pub)¶ Remove a key from the wallet database
-
rpc
¶
-
setKeys
(loadkeys)¶ This method is strictly only for in memory keys that are passed to Wallet with the
keys
argument
This method allows us to override default instance for all users of
SharedInstance.instance
.Parameters: instance (chaininstance) – Chain instance
This allows to set a config that will be used when calling
shared_blockchain_instance
and allows to define the configuration without requiring to actually create an instance
This method allows to set the current instance as default
This method will initialize
SharedInstance.instance
and return it. The purpose of this method is to have offer single default instance that can be reused by multiple classes.
-
unlock
(pwd)¶ Unlock the wallet database
-
unlocked
()¶ Is the wallet database unlocked?
-
wipe
(sure=False)¶
-