Skip to main content

Method Signature

Parameters

This method takes no parameters. It always generates a fresh, random wallet.

Returns

Returns a Wallet object containing:
string
The public wallet address (e.g., 0x742d...)
string
The private key used for signing transactions. Keep this secret!
string
The 12-word recovery phrase. Store this securely - it cannot be recovered if lost!

Example

Security Warning: The privateKey and mnemonic give full access to the wallet’s funds. Never expose them in client-side code or logs. Store them securely (e.g., encrypted database, environment variables).

Import from Mnemonic

Restore from seed phrase

Import from Private Key

Import existing key

Encrypt Wallet

Secure storage