
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
Command line utility for Ethereum stakers.
The utility tool works as an interactive Eth/Eth2 Awesome List on your console.
You can use staker command to check Eth1 address balance / transaction, check the gas fee before you make a deal.
If you are an Eth2 staker, you can use the command to check Eth2 deposit stats, open validator explorer or show its balance.
Most commands support multiple tools. You can use the default address, validator, gas command to explore tools you have rarely experienced.
To avoid single point of failure, the command randomly pick a free Ethereum Node to fetch the on-chain data instead of counting on Infura. (You can specify a node if you want to)
If you think this tool is useful, please consider support with the Gitcoin Grant along with other great projects.
Make sure node.js is installed in your device.
Open terminal and type npx staker help to find all skills that staker command can do.
$ npx staker help
I have 48 skills:
* π°balance - Show [address] balance
...
* πaddress|addr [address|tx] - Pick address explorer from the list
* πvalidator - Pick a beacon validator explorer from the list
* π stats - latest Eth2 stake state
* πaccount|defi - Pick an account explorer from the list
* πgas - Pick a gas estimator from the list
* πΈfeeswtf [address] - Check total fees consumption on fees.wtf
* β network|config|network [chain] - find MetaMask network config data (chain providers url and network id)
...
* qrcode [text] - Generate QRCode with [text]
* check [address] - check if [address] is valid
* help - list available skills
If you expect to use this tool frequently, install it via command:
npm install -g staker
* π lastblock|block|block-eth - get the latest Eth1 block number
* π°balance - Show [address] balance
* π°balance-eth - Show [address] balance on Ethereum Network
* network ethereum - find ethereum related network config
Use staker balance [addr] command, you can given a Eth address and get related account balance on Eth1, Eth2(validator), Binance Smart Chain, xDai Chain, and zkSync.
Eth1 also shows the balance of tokens tradable on 1inch.
xDai chain shows the balance of xDai, WETH and stable coins (USDt, USDC, Dai...).
zkSync (L2) shows all balances.
Also support multiple validators balance by comma (without space).
$ npx staker balance [addr]
Account Balance
ββββββββββββ¬βββββββββ¬βββββββββββββ¬ββββββββββββββββββββββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β ETH β 1 β β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β USDT β 8888 β TetherUSD β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β Dai β 123 β DaiStablecoin β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β aUSDt β 1234.56 β AaveInterestbearingUSDT β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β cUSDt β 567.89 β CompoundUSDT β
ββββββββββββ΄βββββββββ΄βββββββββββββ΄ββββββββββββββββββββββββββββ
(Eth2) Validator Balance
ββββββββββ¬βββββββββββββ¬βββββββββ
β Symbol β Balance β Index β
ββββββββββΌβββββββββββββΌβββββββββ€
β ETH β 32.02 ETH β 12345 β
ββββββββββΌβββββββββββββΌβββββββββ€
β ETH β 32.01 ETH β 54321 β
ββββββββββ΄βββββββββββββ΄βββββββββ
Binance Smart Chain Balance
ββββββββββββ¬βββββββββ¬βββββββββββββββββββββ¬βββββββββββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌβββββββββββββββββββββΌβββββββββββββββββ€
β 0x1234.. β BNB β 1.1629287286160097 β β
ββββββββββββΌβββββββββΌβββββββββββββββββββββΌβββββββββββββββββ€
β 0x1234.. β USDT β 1604.828533646356 β Tether USD β
ββββββββββββΌβββββββββΌβββββββββββββββββββββΌβββββββββββββββββ€
β 0x1234.. β DAI β 7.970374382295285 β Dai Stablecoin β
ββββββββββββ΄βββββββββ΄βββββββββββββββββββββ΄βββββββββββββββββ
xDai Chain Balance
ββββββββββββ¬βββββββββ¬ββββββββββββββ¬βββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β xDai β 0.008437828 β β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β USDT β 8888 β β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β USDC β 123 β β
ββββββββββββ΄βββββββββ΄ββββββββββββββ΄βββββββββ
zkSync Balance
ββββββββββββ¬βββββββββ¬ββββββββββββββ¬βββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β USDt β 0.01 β β
ββββββββββββ΄βββββββββ΄ββββββββββββββ΄βββββββββ
Can only query the balance on Ethereum Network with balance-eth skill
$ staker balance-eth [addr]
Account Balance
ββββββββββββ¬βββββββββ¬βββββββββββββ¬ββββββββββββββββββββββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β ETH β 1 β β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β USDT β 8888 β TetherUSD β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β Dai β 123 β DaiStablecoin β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β aUSDt β 1234.56 β AaveInterestbearingUSDT β
ββββββββββββΌβββββββββΌβββββββββββββΌββββββββββββββββββββββββββββ€
β 0x1234.. β cUSDt β 567.89 β CompoundUSDT β
ββββββββββββ΄βββββββββ΄βββββββββββββ΄ββββββββββββββββββββββββββββ
```sh
npx staker network ethereum
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββ
β name β rpc β chainId β symbol β
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Ethereum Mainnet β https://cloudflare-eth.com β 1 β ETH β
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Ethereum Testnet Ropsten β wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY} β 3 β ROP β
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Ethereum Testnet Rinkeby β wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY} β 4 β RIN β
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Ethereum Testnet Kovan β https://kovan.infura.io/v3/${INFURA_API_KEY} β 42 β KOV β
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Ethereum Testnet GΓΆrli β https://rpc.slock.it/goerli β 5 β GOR β
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Ethereum Classic Mainnet β https://ethereumclassic.network β 61 β ETC β
ββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββ
* π stats - latest Eth2 stake state
* lastblock-eth2|lastblock-beacon|block-eth2|block-beacon- get the latest Eth2 block number
* π°balance-validator|balance-eth2 - Show Validator's balance of [key]
* πvalidator - Pick a beacon validator explorer from the list
* π‘beaconchain|beaconcha|beaconcha.in [address] - check validator address or number on beaconscan
* π‘beaconscan|scan [address] - check validator address or number on BeaconScan
Get Eth2 stats via staker stats command
π€ Reward Rate: 9.91%
πΎ Participation Rate: 98.99%
π Active Validators: 64,228
π¦ Latest Epoch: 10845
π¬ Queued Validators: 16,658
β³ Wait time: 8 days, 2 hours
π° Deposited ETH: 2,588,354 (for 80,886 π§βπΎ)
πͺ£ Trapped ETH%: 2.26%
Given a Eth2 validator address, you can get Eth2 validator balance
$ npx staker balance-validator [address or index]
(Eth2) Validator Balance
ββββββββββ¬βββββββββββββ¬βββββββββ
β Symbol β Balance β Index β
ββββββββββΌβββββββββββββΌβββββββββ€
β ETH β 32.02 ETH β 12345 β
ββββββββββ΄βββββββββββββ΄βββββββββ
Also support multiple validators balance by comma (without space), ex
$ npx staker balance-validator 12345,23456
(Eth2) Validator Balance
ββββββββββ¬βββββββββββββ¬βββββββββ
β Symbol β Balance β Index β
ββββββββββΌβββββββββββββΌβββββββββ€
β ETH β 32.02 ETH β 12345 β
ββββββββββΌβββββββββββββΌβββββββββ€
β ETH β 32.01 ETH β 23456 β
ββββββββββ΄βββββββββββββ΄βββββββββ
You can link to multiple beacon explorer via command:
npx staker validator 12345
pick address explorer from the list
β― Random
Beaconscan
Beaconcha.in
Or pick the specific validator like beaconscan
$ npx staker beaconscan [address or index]
Check [address or index] via BeaconScan
Or beaconcha.in
$ npx staker beaconchain [address or index]
Check [address or index] via beaconcha.in
* πaddress|addr [address|tx] - Pick address explorer from the list
* π¦anyblock [address|tx] - check address or tx on ANYblock
* π¦bitquery [address|tx] - check address or tx on explorer.bitquery.io
* π¦blockchair [address|tx] - check address or tx on blockchair.com
* π¦bloxy [address|tx] - check token symbol, address or tx hash on bloxy.info
* π¦etherchain|chain [address|tx] - check address or tx on etherchain
* π¦etherscan|scan [address|tx] - check address or tx on Etherscan
* π¦ethplorer [address|tx] - check address or tx on ethplorer
* π¦tokenview [address|tx] - check address or tx on tokenview
You can link to Eth Address or Contract from multiple explorer
npx staker address [addr]
Or search address in specific explorer like Etherscan
$ npx staker etherscan [addr]
Check [addr] via Etherscan
It will open browser to search [addr] on Etherscan.
These commands can be used to search transaction (tx) as well.
* πgas - Pick a gas estimator from the list
* β½ gasfee - Show current on-chain gas fee
* β½ gaspriceoracle|oracle - Show current gas fee via Eth Gas Price Oracle
* β½ gasstation|station - Show current gas fee via Eth Gas Station
* β½ gastracker|tracker - Show current gas fee via Etherscan Gas Tracker
You can get gas fee estimator from multiple sources
npx staker gas
pick address explorer from the list
β― Random
Gas Fee
Gas Now
Gas Price Oracle
GasStation
Gas Tracker
Or check specific gas fee estimator like ETH GAS STATION
$ npx staker gasstation
Current gas fee (report by EthGasStation) is H:70 M:50 L:48 gwei
Check Account on Defi Explorer
* πaccount|defi - Pick an account explorer from the list
* π§©dappradar [address] - check DeFi balance on DappRadar
* π§©debank [address] - check DeFi balance on Debank
* π§©zapper [address] - check DeFi balance on Zapper
* π§©zerion [address] - check DeFi Balance on Zerion
* β network|config|network [chain] - find network config data (chain providers url and network id)
* β nodes - list free accessible ethereum nodes
If you are using Metamask for EVM compatible chain like Huobi eco chain, BSC chain... Can use npx staker network command to find and fill the Network data of RPC, Chainid, symbol.
ex: search network config for matic chain
npx staker network matic
ββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββ
β name β rpc β chainId β symbol β
ββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Matic Mainnet β https://rpc-mainnet.matic.network β 137 β MATIC β
ββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Matic Testnet Mumbai β https://rpc-mumbai.matic.today β 80001 β tMATIC β
ββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββ
Will list all network config if not pass the param.
short name or chainId could work
npx staker network bsc
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ¬βββββββββ¬βββββββ name β rpc β chainIdβ symbol β
Binance Smart Chain Mainnetβ https://bsc-dataseed1.defibit.io β 56 β BNB β
Binance Smart Chain Testnetβ https://data-seed-prebsc-1-s2... β 97 β tBNB β
npx staker network 56
βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββ
β name β rpc β chainId β symbol β
βββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Binance Smart Chain Mainnet β https://bsc-dataseed1.ninicoin.io β 56 β BNB β
βββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββ
staker nodes command will list free accessible ethereum nodes:
npx staker nodes
https://api.mycryptoapi.com/eth
https://cloudflare-eth.com/
...
* π°balance-bsc - Show address balance on Binance Smart chain
* π¦bsc|bscscan [address|tx] - check address or tx on Binance Smart Chain
* network binance - show related network config
$ npx staker balance-bsc [address]
Binance Smart Chain Balance
ββββββββββββ¬βββββββββ¬βββββββββββββββββββββ¬βββββββββββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌβββββββββββββββββββββΌβββββββββββββββββ€
β 0x1234.. β BNB β 1.1629287286160097 β β
ββββββββββββΌβββββββββΌβββββββββββββββββββββΌβββββββββββββββββ€
β 0x1234.. β USDT β 1604.828533646356 β Tether USD β
ββββββββββββΌβββββββββΌβββββββββββββββββββββΌβββββββββββββββββ€
β 0x1234.. β DAI β 7.970374382295285 β Dai Stablecoin β
ββββββββββββ΄βββββββββ΄βββββββββββββββββββββ΄βββββββββββββββββ
npx staker network binance
βββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββ
β name β rpc β chainId β symbol β
βββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Binance Smart Chain Mainnet β https://bsc-dataseed3.ninicoin.io β 56 β BNB β
βββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Binance Smart Chain Testnet β https://data-seed-prebsc-2-s1.binance.org:8545 β 97 β tBNB β
βββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββ
* π°balance-matic - Show address balance on MATIC chain
* π¦matic [address|tx] - check address or tx on Matics
* network matic - show related network config
npx staker network matic
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββ
β name β rpc β chainId β symbol β
ββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Matic Mainnet β wss://ws-mainnet.matic.network β 137 β MATIC β
ββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β Matic Testnet Mumbai β https://rpc-mumbai.matic.today β 80001 β tMATIC β
ββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββ
* π¦xdai [address|tx] - check address or tx on xDai Chain
* π°balance-xdai - Show address balance on xDai chain
* lastblock-xdai|lastblockxdai|block-xdai|blockxdai - get the latest xDai block number
* network xdai - show xdai network configs
$ npx staker balance-xdai [address]
xDai Chain Balance
ββββββββββββ¬βββββββββ¬ββββββββββββββ¬βββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β xDai β 0.008437828 β β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β USDT β 8888 β β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β USDC β 123 β β
ββββββββββββ΄βββββββββ΄ββββββββββββββ΄βββββββββ
npx staker network xdai
ββββββββββββββ¬ββββββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββ
β name β rpc β chainId β symbol β
ββββββββββββββΌββββββββββββββββββββββββββββββΌββββββββββΌβββββββββ€
β xDAI Chain β wss://rpc.xdaichain.com/wss β 100 β xDAI β
ββββββββββββββ΄ββββββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββ
* π¦heco [address|tx] - check address or tx on Huobi Eco Chain
* π°balance-zksync - Show address balance on ZkSync
* π¦zksync [address|tx] - check address or tx on zkSync
npm balance-zksync [addr]
zkSync Balance
ββββββββββββ¬βββββββββ¬ββββββββββββββ¬βββββββββ
β Address β Symbol β Balance β Source β
ββββββββββββΌβββββββββΌββββββββββββββΌβββββββββ€
β 0x1234.. β USDt β 0.01 β β
ββββββββββββ΄βββββββββ΄ββββββββββββββ΄βββββββββ
* π°balance-optimism - Show address balance on Optimism
* π¦optimism [address|tx] - check address or tx on optimism
npm balance-optimism [addr]
Optimism Balance
...
* π€©awesome|lucky - Show random awesome site around ethereum
* qrcode [text] - Generate QRCode with [text]
* check [address] - check if [address] is valid
* help - list available skills
Given any text (ex a Eth address) and get the QRCode
$ npx staker qrcode [addr]
(QRcode shows here)
Given any address to check if address is valid.
Can also check the address checksum.
$ npx staker check 0x12345678
false (incorrect format)
Currently support en(english) and zh_TW (Traditional Chinese)
Set the SAIHUBOT_LANG environment variable
export SAIHUBOT_LANG=zh_TW
Then run the command.
Set SAIHUBOT_NODE_URL to the node you want to use, ex: infura, or pick from https://ethereumnodes.com/
do export SAIHUBOT_ADDR=0x.....,0x..... and you can use balance command without pass the address
npx staker balance
The Address has 1 ETH
do export SAIHUBOT_VALIDATOR=12345 and you can use beaconchain or beaconscan command without pass the address
npx staker beaconchain
Check 12345 via beaconchain
FAQs
Command line Utillity for Ethereum stakers
The npm package staker receives a total of 137 weekly downloads. As such, staker popularity was classified as not popular.
We found that staker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.