The class for creating HD wallet (BIP32).
Wallet(init_vector=None, passphrase='', path_type=None, init_account=None, address_type=None, testnet=False, hardened=False)¶
The class for creating wallet object.
init_vector – (optional) initialization vector should be mnemonic phrase, extended public key, extended private key, by default is None (generate new wallet).
passphrase – (optional) passphrase to get ability use 2FA approach for creating seed, by default is empty string.
path_type – (optional) “BIP44”, “BIP49”, “BIP84”, by default is “BIP84”
init_account – (optional) integer
address_type – (optional) “P2PKH”, “P2SH_P2WPKH”, “P2WPKH”
testnet – (optional) flag for testnet network, by default is False.
hardened – (optional) boolean, by default is False.
account private xkey (string)
account public xkey (string)
the class method for creating a wallet address.
i – index
chain – (optional) “external”, “internal”, by default is “external”
private_key (in case wallet is restored from private xkey or mnemonic)