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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ether-airdrop

v1.0.14

Published

erc20 token or ETH airdrop tool

Downloads

19

Readme

ERC20代币,ETH空投工具

  • 使用metamask在web页面上空投

    请访问 https://www.94eth.com/tool/#/tokenTool/airdrop 即可

  • 使用nodejs服务器端空投

    请新建一个目录

     mkdir airdrop
     cd airdrop
    
     npm install ether-airdrop
    
     node node_modules/ether-airdrop/batch_drop.js -h

调用参数

  1. -k --keystore keystore文件目录

    假设keystore路径为 /data/keystore/UTC--2018-04-18T07-19-51.697Z--2fd3a2a2bf53b70f899a0aa7ce5a546d8e5d1bd5,那么调用参数为-k /data

    注意该目录下必须还要有一个keystore文件夹,里面才是json文件

  2. -d --data

    空投文件路径,每行一个地址,如果要指定每个地址空投数量,地址后跟数量值,用逗号分隔

    示例文件内容:

     c21673f13fa66dd1eedf10cc8fe7dfe3c7878282, 2
     0xA7f6Ab353F75a4815a407D1811AAc5092af7134f, 0.14
     0x99D72939eD2c13Bc7DEB10F20E7064bfDC2c6F45, 0.23
     0x42e56737679f8859951B558483584fAa483c4aFd, 0.3
     0x5fe9CFa5cFECDC333eb102d219B4e77EAcdE9828, 2.32
3. -s --specify

      每个地址空投数量,不填或者填0表示每个地址指定数量,从数据文件中读取
  1. -w --web3

    ethereum节点rpc地址,建议使用 infura 的节点

调用示例:

 node node_modules/ether-airdrop/batch_drop.js -k /data/test -d /data/test/ids2.csv -s 0.001 -w https://ropsten.infura.io/vAugb8H4cG1bOuFMZj3y

使用说明

  1. 安全问题

    交易均为本地签名然后发送给节点,也不保存私钥和密码。

  2. 使用

    建议先创建一个新的以太坊账号,然后在ropsten网络上测试:

    • 空投ETH,请在 https://faucet.metamask.io/ 上申请测试ETH
    • 空投ERC20代币,可以在 https://www.94eth.com/tool/#/tokenTool/ico 上先发行一个ERC20代币

    空投开始前,最好先在 https://www.94eth.com/tool/#/tokenTool/airdrop 上调试参数,直到页面上可以顺利空投后,再用脚本工具自动批量空投。 另外空投ERC20代币必须先给合约授信,只能在页面上进行。

    使用脚本工具空投时,会依次询问如下信息:

     ? 请选择网络 ropsten
     ? 请输入代币地址,ETH输入0 0x2D20CC47DEb5387bEd4c72c3179f3B3E42696EB1
     ? 请输入投放使用账户的地址 0x2FD3a2A2bF53B70F899a0aa7CE5a546d8e5d1bD5
     ? 每批次投放地址数量,直接回车默认120 120
     ? 是否每批空投前均提示 (调试时请开启) no
     投放代币 BED
     当前可空投数量 3949.2, 空投总共需要数量 18.274
     获取账户nonce 17
     每批空投手续费0.004ETH
     信息收集完毕,请解锁钱包
     ? 请输入账户文件密码 [hidden]
     开始空投 第1批
     交易0xd24537f0410d64fea9369c88e235cd5dc8f109aa643b33b5037bce03d43f0235已经发出,等待交易结果...

建议第一次使用时,“是否每批空投前均提示” 选yes,这样每批空投前会展示空投信息并询问是否正确