Wallet Management
Manage Qi and Quai HD wallets.
The QiHDWallet class provides additional low-level functionality on top of the base Wallet class, allowing for more granular control and wallet management.
Initialize a Quai HD Wallet
You can initialize a Quai HD wallet by creating a new instance from a mnemonic:
It is highly recommended to import secret phrases securely from environment variables or files.
Derive Addresses
Quai HD wallets allow for derivation of multiple accounts, addresses, and specific zones from a single mnemonic as specified by BIP-32.
The HD Wallet also provides a number of methods to return data for derived addresses by certain filters:
Storage and Transmission
Wallet storage and transmission can be securely done using a serialized representation of the wallet. The HD wallet provides functionality for both serializing and deserializing the wallet.
The QiHDWallet class provides additional low-level functionality on top of the base Wallet class, allowing for more granular control and wallet management.
Initialize a Quai HD Wallet
You can initialize a Quai HD wallet by creating a new instance from a mnemonic:
It is highly recommended to import secret phrases securely from environment variables or files.
Derive Addresses
Quai HD wallets allow for derivation of multiple accounts, addresses, and specific zones from a single mnemonic as specified by BIP-32.
The HD Wallet also provides a number of methods to return data for derived addresses by certain filters:
Storage and Transmission
Wallet storage and transmission can be securely done using a serialized representation of the wallet. The HD wallet provides functionality for both serializing and deserializing the wallet.
The QiHDWallet class manages Qi UTXO accounts and addresses.
Initialize a Qi HD Wallet
You can initialize a Qi HD wallet by creating a new instance from a mnemonic and syncing the UTXO set:
To use a Qi HD wallet, you must first connect to a provider and sync the UTXO set. This will retrieve standard and change addresses, as well as scan the specified account for addresses with unspent outputs.
It is highly recommended to import secret phrases securely from environment variables or files.
Once scanning is complete, the addresses and outpoints can be retrieved using the following methods:
Derive Addresses
Qi HD wallets allow for derivation of multiple accounts, addresses, and specific zones from a single mnemonic as specified by BIP-32.
Storage and Transmission
Wallet storage and transmission can be securely done using a serialized representation of the wallet. The HD wallet provides functionality for both serializing and deserializing the wallet.
Was this page helpful?