pylibsimba.base.wallet_base.WalletBase¶
-
class
pylibsimba.base.wallet_base.
WalletBase
(signing_confirmation)¶ Base class for PyLibSIMBA Wallet implementations
-
__init__
(signing_confirmation)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(signing_confirmation)Initialize self.
default_accept
()Remove the current wallet
generate_wallet
([mnemonic])Create a new wallet.
The address associated with this wallet
sign
(payload)Sign the payload with the wallet
unlock_wallet
(passkey)If the wallet is locked, unlock it with the given passkey
Does a wallet currently exist?
-
delete_wallet
()¶ Remove the current wallet
-
generate_wallet
(mnemonic: str = None)¶ Create a new wallet. Set self.wallet to the new wallet.
- Parameters
mnemonic – A string the wallet will use to create the wallet.
-
get_address
()¶ The address associated with this wallet
-
sign
(payload) → dict¶ Sign the payload with the wallet
- Parameters
payload – an object
- Returns
Returns the signed transaction
-
unlock_wallet
(passkey)¶ If the wallet is locked, unlock it with the given passkey
- Parameters
passkey – used to unlock the wallet
-
wallet_exists
() → bool¶ Does a wallet currently exist?
-