← Back to Skills Marketplace
arein

Onchain Test

by arein · GitHub ↗ · v0.1.2
cross-platform ⚠ suspicious
1646
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install onchain-test
Description
CLI for crypto portfolio tracking, market data, and CEX history. Use when the user asks about crypto prices, wallet balances, portfolio values, Coinbase/Binance holdings, or Polymarket predictions.
README (SKILL.md)

Onchain CLI

CLI for crypto portfolio tracking, market data, and CEX history.

Invocation

onchain \x3Ccommand>

Commands

Market Data

onchain price \x3Ctoken>         # Token price (btc, eth, sol, etc.)
onchain markets               # Market overview with trending

Wallet Data

onchain balance [address]           # Token balances (auto-detects EVM/Solana)
onchain balance --chain polygon     # Filter by chain
onchain history [address]           # Transaction history
onchain portfolio [address]         # Full portfolio with DeFi positions

CEX Data

onchain coinbase balance      # Coinbase balances
onchain coinbase history      # Coinbase trade history
onchain binance balance       # Binance balances
onchain binance history       # Binance trade history

Prediction Markets

onchain polymarket trending          # Trending markets
onchain polymarket search \x3Cquery>    # Search markets
onchain polymarket view \x3Cslug>       # View market details

Configuration

onchain setup                 # Interactive setup wizard
onchain config                # View current config
onchain config wallet add \x3Cname> \x3Caddress>
onchain config wallet set-default \x3Cname>

Global Options

  • --json - Output as JSON (agent-friendly)
  • --plain - Disable colors and emoji
  • --timeout \x3Cms> - Request timeout

Configuration

Config file: ~/.config/onchain/config.json5

Required API Keys

Feature API Key Get Key
EVM wallets DEBANK_API_KEY DeBank
Solana wallets HELIUS_API_KEY Helius
Coinbase CEX COINBASE_API_KEY + COINBASE_API_SECRET Coinbase
Binance CEX BINANCE_API_KEY + BINANCE_API_SECRET Binance

Optional API Keys

Feature API Key Notes
Market data COINGECKO_API_KEY Free tier works, Pro for higher limits
Market fallback COINMARKETCAP_API_KEY Alternative market data source

Examples

Get Bitcoin price

onchain price btc

Check wallet balance

onchain balance 0x1234...5678

View portfolio with DeFi positions

onchain portfolio main  # Uses saved wallet named "main"

Get trending prediction markets

onchain polymarket trending -n 5

JSON output for scripts

onchain --json price eth | jq '.priceUsd'

Supported Chains

EVM (via DeBank)

Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Avalanche, Base, zkSync Era, Linea, Scroll, Blast, Mantle, Gnosis, Fantom, Celo, and more.

Solana (via Helius)

Full Solana mainnet support including SPL tokens and NFTs.

Agent Integration

This CLI is designed for agent use. Key patterns:

  1. Always use --json for programmatic access
  2. Check exit codes - 0 for success, 1 for error
  3. Use saved wallets - Configure once with onchain setup, reference by name
  4. Rate limiting - APIs have rate limits, add delays between rapid calls

Example Agent Usage

# Get portfolio value
VALUE=$(onchain --json portfolio main | jq -r '.totalValueUsd')

# Get price with change
onchain --json price btc | jq '{price: .priceUsd, change24h: .priceChange24h}'

# Check if market is bullish
CHANGE=$(onchain --json markets | jq '.marketCapChange24h')
Usage Guidance
This skill appears to be a plausible crypto CLI, but there are red flags you should address before installing: 1) The registry metadata omits required install and credential info while the SKILL.md/README require multiple sensitive API keys — confirm the exact env var names and which keys are mandatory. 2) The README points to npm package @cyberdrk/onchain; verify the package's publisher, source repository, and reviews on npm/GitHub before running npm install or npx. 3) Give CEX API keys only minimal permissions (read/trade-only, no withdraw) and prefer read-only or limited-scope keys. 4) Inspect how the CLI stores secrets in ~/.config/onchain/config.json5 (is it plaintext?), and avoid storing long-lived secrets unencrypted. 5) If you plan to let an agent call this skill autonomously, consider limiting that agent's permissions or running the CLI in an isolated environment (container, VM). 6) Ask the publisher for source code or a homepage; lack of provenance + missing registry metadata increases risk. If you cannot verify the package/source, treat it as untrusted and avoid installing it on sensitive systems.
Capability Analysis
Type: OpenClaw Skill Name: onchain-test Version: 0.1.2 The skill bundle is classified as benign. The `SKILL.md` and `README.md` files clearly describe a CLI tool for crypto portfolio tracking and CEX history. While the tool requires sensitive API keys (e.g., `DEBANK_API_KEY`, `COINBASE_API_SECRET`, `BINANCE_API_SECRET`) for its functionality, the instructions for the AI agent are explicit about their purpose and use, without any evidence of prompt injection attempts to misuse these keys, exfiltrate data, or perform unauthorized actions. All commands and configurations are aligned with the stated purpose of the tool, and there are no indicators of malicious execution, persistence, or obfuscation.
Capability Assessment
Purpose & Capability
The described capabilities (wallet balances, CEX history, market data, Polymarket) legitimately require API keys and access to user wallet addresses; that matches the SKILL.md/README functionality. However the registry metadata lists no required env vars or install steps despite the CLI clearly needing API keys and an npm package, an inconsistency worth flagging.
Instruction Scope
SKILL.md stays within the stated purpose: it instructs the agent to run the onchain CLI, use --json, check exit codes, and read/write a config at ~/.config/onchain/config.json5. It does not instruct reading unrelated system files or exfiltrating data to unknown endpoints. It does, however, expect the agent to have or install the CLI binary.
Install Mechanism
No install spec is declared in the registry, but the README instructs installing @cyberdrk/onchain via npm or npx. That means executing third‑party code from the npm registry (source unknown to the registry entry) if the user follows the docs — a nontrivial risk because the skill metadata did not declare this and there is no provided provenance or homepage.
Credentials
SKILL.md/README list multiple sensitive credentials (DeBank, Helius, Coinbase, Binance API keys/secrets, etc.) which are proportionate to the CLI's features. However the registry metadata lists no required env vars and the SKILL.md and README use inconsistent env var names for some providers (e.g., Coinbase variable names differ). Requesting CEX API keys is expected for those features, but the omission and inconsistencies are suspicious and increase the chance of misconfiguration or accidental exposure.
Persistence & Privilege
The skill does not request permanent platform presence (always: false) and does not claim to modify other skills. It will store configuration and possibly API keys at ~/.config/onchain/config.json5 per its docs, which is normal for a CLI but means secrets will be stored on disk — users should verify how the CLI stores/encrypts those secrets before use.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install onchain-test
  3. After installation, invoke the skill by name or use /onchain-test
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.2
test
Metadata
Slug onchain-test
Version 0.1.2
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Onchain Test?

CLI for crypto portfolio tracking, market data, and CEX history. Use when the user asks about crypto prices, wallet balances, portfolio values, Coinbase/Binance holdings, or Polymarket predictions. It is an AI Agent Skill for Claude Code / OpenClaw, with 1646 downloads so far.

How do I install Onchain Test?

Run "/install onchain-test" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Onchain Test free?

Yes, Onchain Test is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Onchain Test support?

Onchain Test is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Onchain Test?

It is built and maintained by arein (@arein); the current version is v0.1.2.

💬 Comments