Build with MultiVanity
A JavaScript and TypeScript SDK for vanity address generation. Every search runs locally in your own runtime, and generated addresses and private keys never leave the process.
Last updated: 2026-11-22
Install the SDK preview
Version 0.1.1 is available as a release tarball while npm publication awaits maintainer authentication. Install it with npm install https://multivanity.com/downloads/multivanity-0.1.1.tgz. After registry publication, the intended package name is multivanity.
The package supports Node.js 22.12 or later and modern browser bundlers. It ships TypeScript declarations and uses Noble cryptographic primitives. It has no install-time scripts or automatic telemetry.
Local generation
Import MultiVanity from multivanity, create new MultiVanity(), then call generate({ chain: "eth", prefix: "a" }, { mode: "local" }). The result includes an address, private key, duration and execution method. Never log the private key.
Local ETH/EVM and Solana searches require no API key and make no network requests: the key pair is created in your own process or browser tab. Estimates are approximate and are not completion guarantees. Local BTC/TRON generation is not included in this preview.
Use AbortSignal and timeoutMs to stop work. Run larger browser searches in a Web Worker to keep your interface responsive.
What runs locally
The local engine covers Ethereum and every EVM network with secp256k1, and Solana with Ed25519. Bitcoin and TRON are not part of this preview.
Results are ordinary addresses and private keys. Import them into the wallet of your choice, and check the address character for character before you send funds.
How does MultiVanity compare with Foundry cast wallet vanity?
Foundry's cast wallet vanity is a native command-line search for EVM addresses. The MultiVanity SDK covers the same EVM prefix and suffix searches from JavaScript or the browser, adds Solana, and the web generator adds Bitcoin and TRON.
| cast wallet vanity | MultiVanity SDK | MultiVanity web generator |
|---|---|---|
--starts-with <hex or regex> | prefix: "cafe" (exact characters, no regex) | Starts with |
--ends-with <hex or regex> | suffix: "beef" | Ends with |
| Regex or hex string | caseSensitive: true for EIP-55 casing | Match letter case |
--nonce <n> (vanity contract address) | Not supported | Not supported |
--save-path <file> | Your code stores the result | Copy or save from the result panel |
-j, --threads <n> | Run searches in Web Workers; stop with AbortSignal or timeoutMs | Uses your browser's threads |
| EVM networks only | chain: "eth" plus network for Base, BNB Chain, Polygon, Arbitrum, Optimism, Avalanche; chain: "sol" | Also Bitcoin and TRON |
A native CLI on many cores is usually faster for long EVM patterns. A four-character hex pattern needs about 65,536 attempts and six need about 16.8 million; the web generator accepts up to 7 characters on EVM networks. One key gives the same 0x address on every EVM network, as explained in one address on many EVM networks. See the cast wallet vanity reference, the Ethereum generator and the difficulty calculator.
Key handling
Every search runs in your browser, on your device. Generated addresses and private keys are created locally and are never sent to or stored on our servers.
The library does not store your keys and cannot recover them. Back up every key yourself, and keep it out of logs, screenshots and shared notes. Read the privacy information.