
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@cyberdrk/onchain
Advanced tools
CLI tool for crypto portfolio tracking, market data, and CEX history
CLI for crypto portfolio tracking, market data, and CEX history. Designed for both human use and AI agent integration.
npm install -g @cyberdrk/onchain
Or run directly with npx:
npx @cyberdrk/onchain price btc
# Check token prices
onchain price btc
onchain price eth sol matic
# View wallet balances (auto-detects EVM/Solana)
onchain balance 0x1234...5678
# CEX balances
onchain coinbase balance
onchain binance balance
# Market overview
onchain markets
# Prediction markets
onchain polymarket trending
onchain price <token> # Token price with 24h change
onchain markets # Market overview with trending coins
onchain balance <address> # Token balances (EVM or Solana)
onchain history <address> # Transaction history
onchain portfolio <address> # Full portfolio with DeFi positions
onchain coinbase balance # Coinbase account balances
onchain coinbase history # Trade history
onchain binance balance # Binance account balances
onchain binance history # Trade history
onchain polymarket trending # Trending markets
onchain polymarket search <q> # Search markets
onchain polymarket view <slug> # Market details
onchain setup # Interactive API key setup
onchain config # View current configuration
onchain test # Test all configured providers
Run onchain setup for interactive configuration, or set environment variables:
| Feature | Environment Variable | Provider |
|---|---|---|
| EVM wallets | DEBANK_API_KEY | DeBank Cloud |
| Solana wallets | HELIUS_API_KEY | Helius |
| Coinbase | COINBASE_API_KEY_ID + COINBASE_API_KEY_SECRET | Coinbase CDP |
| Binance | BINANCE_API_KEY + BINANCE_API_SECRET | Binance |
| Market data | COINGECKO_API_KEY | CoinGecko (optional) |
| Market fallback | COINMARKETCAP_API_KEY | CoinMarketCap (optional) |
Config file locations:
~/.config/onchain/config.json5./.onchainrc.json5--json # Output as JSON (for scripting/agents)
--plain # Disable colors and emoji
--no-color # Disable colors only
--timeout <ms> # Request timeout in milliseconds
This CLI is designed for AI agent use with --json output:
# Get portfolio value
onchain --json portfolio 0x123... | jq '.totalValueUsd'
# Check if market is up
onchain --json markets | jq '.marketCapChange24h > 0'
# Get specific token price
onchain --json price eth | jq '{price: .priceUsd, change: .priceChange24h}'
Exit codes: 0 for success, 1 for errors.
EVM (via DeBank): Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Avalanche, Base, zkSync Era, Linea, Scroll, Blast, Mantle, and 60+ more.
Solana (via Helius): Full mainnet support including SPL tokens and NFTs.
pnpm install
pnpm run dev price btc # Run without building
pnpm run build # Build TypeScript
pnpm run test # Run tests
pnpm run lint # Lint code
MIT
FAQs
CLI tool for crypto portfolio tracking, market data, and CEX history
We found that @cyberdrk/onchain demonstrated a healthy version release cadence and project activity because the last version was released less than 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.