npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ton-wallet-finder

v2.0.0

Published

A library to find TON wallet addresses with a specific ending.

Readme

TON Wallet Finder

This library allows you to find TON wallets with specific address endings. It generates wallets until it finds one whose address ends with the desired string.

Installation

To install the library, use the following command:

npm install ton-wallet-finder

Usage

Create a new JavaScript file, for example, findWallet.js, and add the following code:

const { TonWalletFinder, saveResultsToFile } = require('ton-wallet-finder');

// Set the target address ending and options for displaying progress, results, and saving to a file
const targetEnding = '8'; // Replace with the desired address ending (e.g., 'abc')
const showProcess = true;  // Set to true to display the search progress in the console
const showResult = true;   // Set to true to display the results in the console
const saveResult = true;   // Set to true to save the results to a file

// Create a new instance of the TonWalletFinder class
const finder = new TonWalletFinder(targetEnding, showProcess, showResult, saveResult);

// Find a wallet with the specified address ending
finder.findWalletWithEnding().then(({ publicKey, privateKey, words, walletAddress }) => {
  // Optionally, handle the result here if needed
}).catch(error => {
  console.error('Error:', error);
});

Run your script using Node.js:

node findWallet.js

How It Works

  • The library generates TON wallets and checks their addresses until it finds one that ends with the specified targetEnding.
  • If showProcess is true, it logs each attempted address to the console.
  • If showResult is true, it logs the found wallet's details (public key, private key, mnemonic words, and address) to the console.
  • If saveResult is true, it saves the wallet details to a file named ton_wallet_results.txt in the script's directory.

Options

The TonWalletFinder constructor accepts the following parameters:

  • targetEnding (required): The desired ending for the wallet address. Must consist of Latin letters, numbers, dashes, and underscores.
  • showProcess (optional, default: false): If true, displays the search progress in the console.
  • showResult (optional, default: true): If true, displays the search results in the console.
  • saveResult (optional, default: false): If true, saves the search results to a file.

Methods

findWalletWithEnding()

This method returns a Promise that resolves with an object containing the following properties:

  • publicKey: A string representing the public key in hexadecimal format.
  • privateKey: A string representing the private key in hexadecimal format.
  • words: An array of 24 words representing the wallet's mnemonic seed phrase.
  • walletAddress: A string representing the wallet address in the TON format (e.g., EQ...).

Donations

If you would like to show your gratitude and support, you can donate cryptocurrency to the TonCoin (TON) wallet address:
EQA7h7IS4PvdaWi_0-77XfNRpZSLcDev4erumQpl5fbUJXtr.

License

This library is licensed under the MIT License.


TON Wallet Finder

Эта библиотека позволяет находить кошельки TON с определенными окончаниями адресов. Она генерирует кошельки, пока не найдет тот, чей адрес заканчивается на указанную строку.

Установка

Для установки библиотеки используйте команду:

npm install ton-wallet-finder

Использование

Создайте новый JavaScript файл, например, findWallet.js, и добавьте следующий код:

const { TonWalletFinder, saveResultsToFile } = require('ton-wallet-finder');

// Установите желаемое окончание адреса и опции для отображения прогресса, результатов и сохранения в файл
const targetEnding = '8'; // Замените на желаемое окончание адреса (например, 'abc')
const showProcess = true;  // Установите true, чтобы отображать прогресс поиска в консоли
const showResult = true;   // Установите true, чтобы отображать результаты в консоли
const saveResult = true;   // Установите true, чтобы сохранить результаты в файл

// Создание нового экземпляра класса TonWalletFinder
const finder = new TonWalletFinder(targetEnding, showProcess, showResult, saveResult);

// Поиск кошелька с указанным окончанием адреса
finder.findWalletWithEnding().then(({ publicKey, privateKey, words, walletAddress }) => {
  // Опционально, обработайте результат здесь, если нужно
}).catch(error => {
  console.error('Ошибка:', error);
});

Запустите ваш скрипт с помощью Node.js:

node findWallet.js

Как это работает

  • Библиотека генерирует кошельки TON и проверяет их адреса, пока не найдет тот, который заканчивается на указанное targetEnding.
  • Если showProcess установлено в true, в консоль выводится каждый проверенный адрес.
  • Если showResult установлено в true, в консоль выводятся детали найденного кошелька (публичный ключ, приватный ключ, мнемонические слова и адрес).
  • Если saveResult установлено в true, детали кошелька сохраняются в файл ton_wallet_results.txt в директории скрипта.

Опции

Конструктор TonWalletFinder принимает следующие параметры:

  • targetEnding (обязательный): Желаемое окончание адреса кошелька. Должно состоять из латинских букв, цифр, дефисов и подчеркиваний.
  • showProcess (необязательный, по умолчанию: false): Если true, отображает прогресс поиска в консоли.
  • showResult (необязательный, по умолчанию: true): Если true, отображает результаты поиска в консоли.
  • saveResult (необязательный, по умолчанию: false): Если true, сохраняет результаты поиска в файл.

Методы

findWalletWithEnding()

Этот метод возвращает Promise, который разрешается объектом, содержащим следующие свойства:

  • publicKey: Строка, представляющая публичный ключ в шестнадцатеричном формате.
  • privateKey: Строка, представляющая приватный ключ в шестнадцатеричном формате.
  • words: Массив из 24 слов, представляющих мнемоническую фразу кошелька.
  • walletAddress: Строка, представляющая адрес кошелька в формате TON (например, EQ...).

Пожертвования

Если вы хотите проявить свою благодарность и поддержку, вы можете пожертвовать криптовалюту на адрес кошелька TonCoin (TON):
EQA7h7IS4PvdaWi_0-77XfNRpZSLcDev4erumQpl5fbUJXtr.

Лицензия

Эта библиотека распространяется под лицензией MIT.