JavaScript & TypeScript
Build with CustomETHAddress
A standalone JavaScript and TypeScript SDK for Ethereum and EVM vanity addresses. Your own process or browser worker performs every search and keeps the generated key locally.
Install the downloadable preview
Version 0.1.0 is distributed directly by CustomETHAddress as a release archive. It has not been published to the npm registry; use the full installation URL below.
Use Node.js 22.12 or later, or a modern browser bundler. TypeScript declarations are included. The package uses Noble cryptographic primitives and the runtime cryptographic random generator.
npm install https://www.customethaddress.com/downloads/customethaddress-0.1.0.tgzSearch and verify locally
Choose a prefix or a suffix without the fixed 0x marker. Ethereum patterns accept one to seven hexadecimal characters. Matching ignores letter case by default; caseSensitive: true matches the checksummed address exactly.
The example creates a short disposable test result and verifies the full address/key pair. Keep result.privateKey private and save it securely yourself. The SDK does not send requests, synchronize results or persist keys.
import { generate, verifyResult } from 'customethaddress';
const result = await generate(
{ prefix: 'a', caseSensitive: false },
{ timeoutMs: 5000 },
);
if (!verifyResult(result)) {
throw new Error('Address verification failed');
}
// Save result.privateKey privately. Never log or upload it.Set a time limit and cancel work
timeoutMs defaults to 15,000 milliseconds and must be positive and finite. Pass an AbortSignal as signal to cancel. Both limits are checked between candidates, and a timeout rejects the search without switching to another execution mode.
Long patterns can take much longer than short ones. Run browser searches in a Web Worker to keep the interface responsive. The package can be bundled for a worker; no browser script or service is loaded by the SDK.
Functions and result fields
generate returns address, privateKey, attempts, generationTimeMs and method, which is always local. The private key is a 0x-prefixed 32-byte hexadecimal value; the address uses EIP-55 checksum casing.
deriveAddress accepts a 32-byte hexadecimal private key, with or without 0x, and derives its checksummed address locally. verifyResult returns false for an invalid pair and expects the complete checksummed address. Verification does not prove that a key has remained secret.
Ethereum and EVM scope
This package searches ordinary Ethereum account addresses. The same key and address can be used on compatible EVM networks, with separate balances and transactions on each network. It does not generate contract addresses or broadcast transactions.
No API key or account is needed to run the library. Installation downloads the package and its dependencies; generation itself runs entirely in your own runtime.
Keep control of the returned key
Your application is responsible for handling and backing up the result. Do not put private keys in logs, analytics, shared screenshots or automatic error reports. Returned JavaScript strings cannot be reliably erased by the SDK.
Keep a secure offline copy before ending your session. CustomETHAddress cannot recover a lost key. Follow the Ethereum import and verification guide and review how local generation works.