Overview
When interacting with either Qi or Quai, it is necessary to use a private key authenticate actions by signing a payload. Wallets are the simplest way to expose the concept of an Externally Owner Account (EOA) or UTXO account as it wraps a private key and supports high-level methods to sign common types of interaction and send transactions. The class most developers will want to use is Wallet, which can load a private key directly or from any common wallet format. The SDK also supports Hierarchical Deterministic (HD) wallets for both Quai and Qi ledgers. Developers who need access to low-level wallet details can opt to use the QuaiHDWallet and QiHDWallet classes.Usage
Developers working on the account model Quai ledger have two options for wallet configurations:- Base Wallet: The simplest implementation of a Quai Wallet
- Quai HD Wallet: A Hierarchical Deterministic (HD) wallet for the Quai ledger
- Qi HD Wallet: A Hierarchical Deterministic (HD) wallet for the Qi ledger