Onchain CLI for Openclaw

A comprehensive command-line interface for tracking cryptocurrency portfolios, exchange history, and prediction markets across multiple blockchains.

arein
v0.0.1
Jan 26, 2026
1
3.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install test

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install test using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Onchain CLI?

Onchain CLI is a powerful developer tool designed to bridge the gap between various crypto data sources, including on-chain wallets, centralized exchanges, and prediction platforms. As part of the Openclaw Skills ecosystem, it provides a unified command structure for retrieving real-time financial data. It allows users to query token prices, monitor DeFi positions across dozens of chains, and audit trade history from major exchanges like Coinbase and Binance.

By synthesizing data from industry-standard APIs like DeBank and Helius, this skill offers high-fidelity insights into both EVM and Solana ecosystems. It is built with a focus on automation, providing structured JSON output that makes it an essential asset for developers building financial bots or automated portfolio management systems.

Onchain CLI Use Cases

  • Tracking real-time token prices and 24-hour market trends directly from the terminal
  • Aggregating multi-chain wallet balances including DeFi positions and NFT holdings
  • Auditing historical trade data and balances from Coinbase and Binance accounts
  • Analyzing sentiment and trending opportunities on Polymarket prediction markets
  • Integrating live blockchain data into automated scripts using Openclaw Skills architecture

How Onchain CLI Works

  1. The user executes a specific onchain command, such as price or balance, optionally passing a wallet address or token symbol.
  2. The skill authenticates with the configured service providers (e.g., DeBank for EVM chains or Helius for Solana).
  3. It fetches the requested data from decentralized protocols or centralized exchange APIs using secure API keys.
  4. The tool processes and normalizes the data, calculating current USD values and portfolio weightings.
  5. The final output is delivered in either a formatted terminal view or a raw JSON string for programmatic use.

Onchain CLI Setup

To get started with this skill, you must first run the interactive setup to configure your API keys and wallets.

# Start the interactive configuration wizard
onchain setup

# Add a specific wallet to your saved configuration
onchain config wallet add main_wallet <your-address>

# Verify your configuration and API status
onchain config

Ensure you have your DeBank or Helius API keys ready to enable full multi-chain support. Configuration is stored locally in ~/.config/onchain/config.json5.

Onchain CLI Data Schema & Taxonomy

The skill organizes blockchain and exchange data into structured formats optimized for both human reading and machine parsing.

Component Data Structure
Portfolio Returns an object containing totalValueUsd, netWorth, and an array of chain-specific assets.
Markets Provides token price, 24h priceChange, and marketCapChange24h metrics.
Exchanges Maps CEX trade history to a unified schema including timestamp, pair, side, and amount.
Prediction Details market slugs, liquidity, and probability percentages for trending events.

Using Openclaw Skills with the --json flag ensures these schemas remain consistent for agent integration.

Onchain CLI Advanced Features

  • Native JSON output mode for seamless piping into jq or automated agent workflows
  • Comprehensive support for 15+ EVM chains including Layer 2s like Base, Arbitrum, and Optimism
  • Intelligent wallet address auto-detection for both Ethereum-style and Solana addresses
  • Multi-source market data fallback support using CoinGecko and CoinMarketCap APIs
  • Specialized prediction market analysis tools for Polymarket trending and search functionality

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*