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

web3-crypto-box

v0.0.2

Published

Crypto box tool 是一个cpbox.io开源的的web3代码工具集合,致力于让你写更少的代码,更加专注于自身的业务!

Readme

Crypto box tool

Crypto box tool 是一个cpbox.io开源的的web3代码工具集合,致力于让你写更少的代码,更加专注于自身的业务!


Website

查看官网

联系邮箱[email protected]

安装

npm install cpbox

教程

Batch send token

import { BatchSendToken, SUPPORTED_CHAIN_MAP } from "cpbox";
import { parseEther } from "viem"; // Need install

const batchSendToken = new BatchSendToken(SUPPORTED_CHAIN_MAP.goerli.id, <privateKey>, [erc20TokenAddress]);

const sendList = [
  { address: '0x8258fa56642a8b9AD770272972004EC9Dc1fC4e7', amount: parseEther('0.1', 'wei') },
  {
    address: "0x2192c4C8842D7650aC63613F20a0De7ab9F9c63a",
    amount: parseEther("0.01", "wei"),
  },
]

// send native token
await batchSendToken.sendNativeToken(sendList);

// send erc20 token, you must input erc20TokenAddress
await batchSendToken.sendErc20Token(sendList);

Batch generate wallet

import { BatchGenerateWallet, MnemonicLen, defaultPath } from "cpbox";

const batchGenerateWallet = new BatchGenerateWallet(
  MnemonicLen.len_12,
  defaultPath
);

// generate wallet with mnemonic, you can input a RegExp to match a special address
await batchGenerateWallet.generateWithMnemonic();
/**
 * {
    privateKey: string;
    address: string;
    publicKey: string;
    mnemonic: string;
 * }
 */
// or
const rule = /^0x666AAA/i;
await batchGenerateWallet.generateWithMnemonic(rule);

// generate wallet
const rule = /^0x666AAA/i;
await batchGenerateWallet.generate(rule);
/**
 * {
    privateKey: string;
    address: string;
    publicKey: string;
 * }
 */

dev 运行

控制台1执行

yarn dev

会在当前目录下生成dist目录

node dist/bin/cpbox -h

命令行使用

# help
npx cpbox -h

# batch send token
npx cpbox batchSend -c 5 -f 1.txt 2.txt

# generate wallet
npx cpbox generate -c 100 -f out.txt

# more info
npx cpbox help batchSend
# or
npx cpbox help generate

全局install