Skip to main content

Creating a Wallet

Use DirectEthSecp256k1HdWallet for EVM chains. It defaults to the Ethereum HD path m/44'/60'/0'/0/0 and uses Keccak-256 for address derivation and signing.
For a single private key (no mnemonic), use DirectEthSecp256k1Wallet:
Both wallets report algo: "eth_secp256k1" in their AccountData, which tells the signing client to use EVM-compatible pubkey encoding.

Generating a New Wallet

To generate a fresh mnemonic for an EVM chain:
The default options derive from m/44'/60'/0'/0/0. You can customize the HD path and prefix: