Skip to main content

Method Signature

Parameters

string
required
The private key string (with or without 0x prefix)

Returns

string
The wallet’s public address
string
The wallet’s private key

Examples

From Environment Variable

Error Handling

Never expose private keys in client-side code! Always use server-side operations or secure key management services.

Create Wallet

Create new random wallet

From Mnemonic

Import from seed phrase