hd_wallet_bip

Module for generating wallets based on BIP specifications.

class HdWalletBip(wallet_name: str, bip_obj: Bip44Base, mnemonic: str = '', passphrase: str = '', seed_bytes: bytes = b'')

Bases: HdWalletBase

HD wallet BIP class. It allows to generate a complete wallet based on BIP specifications.

m_bip_obj: Bip44Base
Generate(**kwargs: Any) None

Generate wallet keys and addresses.

Parameters:
  • acc_idx (int, optional) – Account index (default: 0)

  • change_idx (HdWalletBipChanges, optional) – Change index (default: external)

  • addr_num (int, optional) – Number of addresses to be generated (default: 20)

  • addr_off (int, optional) – Starting address index (default: 0)

IsWatchOnly() bool

Get if the wallet is watch-only.

Returns :

bool: True if watch-only, false otherwise