pylibsimba.wallet.Wallet

class pylibsimba.wallet.Wallet(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()

delete_wallet()

Remove the current wallet.

generate_wallet([mnemonic])

Create a new wallet.

get_address()

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

wallet_exists()

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?