Hierarchy

  • Secp256k1HdWallet

Implements

Constructors

Accessors

Methods

  • Get AccountData array from wallet. Rejects if not enabled.

    Returns Promise<readonly AccountData[]>

  • Generates an encrypted serialization of this wallet.

    Parameters

    • password: string

      The user provided password used to generate an encryption key via a KDF. This is not normalized internally (see "Unicode normalization" to learn more).

    Returns Promise<string>

  • Generates an encrypted serialization of this wallet.

    This is an advanced alternative to calling serialize(password) directly, which allows you to offload the KDF execution to a non-UI thread (e.g. in a WebWorker).

    The caller is responsible for ensuring the key was derived with the given KDF options. If this is not the case, the wallet cannot be restored with the original password.

    Parameters

    Returns Promise<string>

  • Request signature from whichever key corresponds to provided bech32-encoded address. Rejects if not enabled.

    The signer implementation may offer the user the ability to override parts of the signDoc. It must return the doc that was signed in the response.

    Parameters

    • signerAddress: string

      The address of the account that should sign the transaction

    • signDoc: StdSignDoc

      The content that should be signed

    Returns Promise<AminoSignResponse>

  • Restores a wallet from an encrypted serialization.

    Parameters

    • serialization: string
    • password: string

      The user provided password used to generate an encryption key via a KDF. This is not normalized internally (see "Unicode normalization" to learn more).

    Returns Promise<Secp256k1HdWallet>

  • Restores a wallet from an encrypted serialization.

    This is an advanced alternative to calling deserialize(serialization, password) directly, which allows you to offload the KDF execution to a non-UI thread (e.g. in a WebWorker).

    The caller is responsible for ensuring the key was derived with the given KDF configuration. This can be done using extractKdfConfiguration(serialization) and executeKdf(password, kdfConfiguration) from this package.

    Parameters

    • serialization: string
    • encryptionKey: Uint8Array

    Returns Promise<Secp256k1HdWallet>

Generated using TypeDoc