AbstractHDWallet
<NeuteredAddressInfo
>Parameter | Type | Description |
---|---|---|
guard | any | - |
root | HDNodeWallet | The root HD node wallet. |
provider ? | Provider | The provider. |
QuaiHDWallet
AbstractHDWallet<NeuteredAddressInfo>.constructor
Parameter | Type | Description |
---|---|---|
account | number | The account number. |
addressIndex | number | The address index. |
NeuteredAddressInfo
The added address info.
AbstractHDWallet.addAddress
Parameter | Type | Description |
---|---|---|
provider | Provider | The provider. |
void
AbstractHDWallet.connect
Parameter | Type | Description |
---|---|---|
address | string | The address. |
null
| NeuteredAddressInfo
The address info or null if not found.
AbstractHDWallet.getAddressInfo
Parameter | Type | Description |
---|---|---|
account | number | The account number. |
NeuteredAddressInfo
[]
The addresses for the account.
AbstractHDWallet.getAddressesForAccount
Parameter | Type | Description |
---|---|---|
zone | Zone | The zone. |
NeuteredAddressInfo
[]
The addresses for the zone.
AbstractHDWallet.getAddressesForZone
Parameter | Type | Description |
---|---|---|
account | number | The index of the account for which to retrieve the next address. |
zone | Zone | The zone in which to retrieve the next address. |
Promise
<NeuteredAddressInfo
>
The next neutered address information.
AbstractHDWallet.getNextAddress
Parameter | Type | Description |
---|---|---|
account | number | The index of the account for which to retrieve the next address. |
zone | Zone | The zone in which to retrieve the next address. |
NeuteredAddressInfo
The next neutered address information.
AbstractHDWallet.getNextAddressSync
Parameter | Type | Description |
---|---|---|
address | string | The address associated with the desired private key. |
string
The private key.
AbstractHDWallet.getPrivateKey
Parameter | Type | Description |
---|---|---|
tx | QuaiTransactionRequest | The transaction request. |
Promise
<TransactionResponse
>
A promise that resolves to the transaction response.
SerializedQuaiHDWallet
An object representing the serialized state of the QuaiHDWallet, including
addresses and other inherited properties from the parent wallet.
AbstractHDWallet.serialize
Parameter | Type | Description |
---|---|---|
address | string | The address. |
message | string | Uint8Array | The message to sign. |
Promise
<string
>
A promise that resolves to the signed message.
AbstractHDWallet.signMessage
Parameter | Type | Description |
---|---|---|
tx | QuaiTransactionRequest | The transaction request. |
Promise
<string
>
A promise that resolves to the signed transaction.
AbstractHDWallet.signTransaction
Parameter | Type | Description |
---|---|---|
address | string | The address for which the typed data is to be signed. |
domain | TypedDataDomain | The domain information of the typed data, defining the scope of the signature. |
types | Record <string , TypedDataField []> | The types of the data to be signed, mapping each data type name to its fields. |
value | Record <string , unknown > | The actual data to be signed. |
Promise
<string
>
A promise that resolves to the signed data in string format.
string
The extended public key.
Type parameter |
---|
T extends AbstractHDWallet <NeuteredAddressInfo , T > |
Parameter | Type | Description |
---|---|---|
this | Object | The constructor of the HD wallet. |
password ? | string | The password. |
wordlist ? | Wordlist | The wordlist. |
T
The created instance.
AbstractHDWallet.createRandom
Parameter | Type | Description |
---|---|---|
serialized | SerializedQuaiHDWallet | The serialized wallet data to be deserialized. |
Promise
<QuaiHDWallet
>
A promise that resolves to an instance of QuaiHDWallet.
AbstractHDWallet.deserialize
Type parameter |
---|
T extends AbstractHDWallet <NeuteredAddressInfo , T > |
Parameter | Type | Description |
---|---|---|
this | Object | The constructor of the HD wallet. |
mnemonic | Mnemonic | The mnemonic. |
T
The created instance.
AbstractHDWallet.fromMnemonic
Type parameter |
---|
T extends AbstractHDWallet <NeuteredAddressInfo , T > |
Parameter | Type | Description |
---|---|---|
this | Object | The constructor of the HD wallet. |
phrase | string | The phrase. |
password ? | string | The password. |
wordlist ? | Wordlist | The wordlist. |
T
The created instance.
AbstractHDWallet.fromPhrase