JavaScript & TypeScript
Create with the CustomSolAddress SDK
Add local Solana vanity generation to your JavaScript project. This independent package searches in your Node.js process or browser worker and returns the result directly to your code.
Get the SDK archive
The 0.1.0 preview is available from this site as an installable archive. It is not an npm registry release, so install from the complete URL shown here.
The supported environments are Node.js 22.12+ and modern browser bundlers. The archive includes TypeScript types. Noble provides the cryptographic operations and uses your runtime cryptographic randomness.
npm install https://www.customsoladdress.com/downloads/customsoladdress-0.1.0.tgzGenerate a Solana pattern in your runtime
Pass either prefix or suffix, using one to six Base58 characters. Base58 omits 0, O, I and lowercase l. Matching is case-sensitive unless you explicitly set caseSensitive: false, as the short example does.
The generated keypair is returned to your code and checked locally in the example. It is a disposable test result. Keep the privateKey value out of logs and decide how to back it up before using a real result.
import { generate, verifyResult } from 'customsoladdress';
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.Bound a search or stop it early
A search has a 15-second default timeout. Supply a positive finite timeoutMs to change it, or pass signal from an AbortController to cancel. Cancellation and time limits are evaluated between candidates.
The library yields periodically, but browser applications should put searches in a Web Worker. More characters can require substantially more attempts; a timeout ends the local run and never starts remote work.
Understand the result and verification helpers
Results include address, privateKey, attempts, generationTimeMs and method: local. The address is a Base58 public key. privateKey encodes the 64-byte Solana secret as Base58: its seed followed by its public key.
deriveAddress checks that complete secret and computes its public address. verifyResult checks both the address and the public half of the private-key representation, returning false when they disagree. Neither helper certifies secrecy or replaces a review of your application.
A package for local Solana generation
The SDK creates Solana keypairs. It does not create recovery phrases, send transactions, deploy programs or manage wallet accounts. Use a compatible wallet when you import a result.
The package has no API client, telemetry or result-upload feature and needs no API credentials. Downloading the archive and dependencies requires access to their hosts; running a search after installation needs no network connection.
Back up the secret outside your application logs
The caller owns storage and recovery. Keep private keys out of telemetry, crash reports, screenshots and shared notes. Although temporary byte buffers are cleared, returned JavaScript strings cannot be reliably wiped by this library.
Save a secure offline backup before discarding the result or closing the page. CustomSolAddress cannot reconstruct a lost key. Use the Solana import checklist and the local-generation guide for the wallet and backup steps.