pylibsimba.simba_wallet.SIMBAWallet¶
-
class
pylibsimba.simba_wallet.SIMBAWallet(signing_confirmation)¶ An example docstring for a class definition.
-
__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. Not actually stored on disk, so just set to None
-
generate_wallet(mnemonic: str = None)¶ Create a 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()¶ Does a wallet currently exist?
-