Skip to main content
Skill — Copyable reference implementation. Use as-is or customize. See Skills Philosophy.

Ethers HD Wallet

Drop-in ethers v6 compatible HD wallet implementation using Voltaire primitives.

Quick Start

Generate New Wallet

Derivation Paths

BIP-44 Standard Paths

Derive Multiple Accounts

Mnemonic Operations

Create and Validate

With Passphrase

Extended Keys (xprv/xpub)

Export and Import

Watch-Only Wallets

Signing

Messages (EIP-191)

Transactions

Typed Data (EIP-712)

Security Considerations

Never log or expose mnemonic phrases. They provide full access to all derived wallets.

Best Practices

  1. Never log mnemonics - Use [REDACTED] in error messages
  2. Use passphrases - Adds extra protection if phrase is compromised
  3. Derive fresh addresses - Don’t reuse addresses across transactions
  4. Clear memory - Overwrite sensitive data when done (not always possible in JS)
  5. Validate inputs - Always validate mnemonics before use

API Reference

HDNodeWallet

Static Methods

Instance Methods