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

tw-eth-cli

v1.0.18

Published

a simple cli tool for eth,quorum

Readme

How to use

English / 中文

  • This command wrapper web3.js and introduce simple cli commands to query balance and call contract with ETH, quorum, etc...
  • Put long parameters in the config file, such as abi, private key, etc...
  • The parameters fill in the console have a higher priority.

1. Install tw-eth-cli

npm install tw-eth-cli -g

2. config

default config path is ~/tw-eth-cli-config.js

| config | comment | | --- | --- | | url | url of web3.js | | fromAddress | from Address, used in transfer | | toAddress | to Address, used in transfer | | fromAddressPK | from Address private key, sign a transaction | | contractAddress |contract address, used in callContract | | raw | decode raw transaction | | hash | transaction hash, used in getTx | | password | transfer by personal account | | money | how many tokens to transfer | | abi | abi of contract |

3. Details, all commands

tw-eth-cli

4. Help

tw-eth-cli help <commmand>

tw-eth-cli <commmand> -h

5. Transfer ERC20

tw-eth-cli transferWithPassword -t <address> -m <money>

transferWithPassword use accounts in the web3.eth.personal

tw-eth-cli transfer -t <address> -m <money>

this command design for ERC20, if you want to transfer ETH, please use transferEth

6. decode raw transaction

tw-eth-cli decode --config <config.js>

input raw, abi in config file. If you have abi, the data in raw can be decoded.

7. Get transaction by hash.

tw-eth-cli getTx --config <config.js>

You can config hash. abi in config file. If you have abi, the data in logs can be decoded.

8. Get block transactions.

tw-eth-cli getBlockTxs

default size is 100.

9. txpool, check pool status

tw-eth-cli pool -c status

tw-eth-cli pool -c content

tw-eth-cli pool -c inspect

-u ,replace url in config.

10. Verify signature.

tw-eth-cli recoverTx

11. Balance Of ETH and ERC20.

tw-eth-cli balanceOf -f <address>

12. Generate public key and address from private key.

tw-eth-cli inspect -k <privateKey>

13. Read Keystore.

tw-eth-cli keystore -f <key.json>

14. Transfer ETH.

tw-eth-cli transferEth -t <address> -m <money>

tw-eth-cli transferEthWithPassword -f <address> -t <address> -m <money>

15. Call Contract.

tw-eth-cli callContract -m <method name> -p <parameter1>,<parameter2> --config <config file path>

tw-eth-cli callContractReturnValue -m <method name> -p <parameter1>,<parameter2> --config <config file path>

16. Sign and verify

// sign
tw-eth-cli sign -m <message> -k <privateKey>

// verify
tw-eth-cli recover -m <message> -s <signature>

// get address and compare
tw-eth-cli inspect -k <privateKey>

17 Sign and return transaction

tw-eth-cli signRawTx -m <method> -p <parameters>

after get raw tx, you can use decode cmd to parse it.