← 返回
未分类 中文

openscan-blockchain-exploration

Procedural knowledge for on-chain blockchain analysis using the openscan CLI
使用openscan CLI进行链上区块链分析的操作流程知识
matiasos matiasos 来源
未分类 clawhub v0.0.3 1 版本 100000 Key: 无需
★ 1
Stars
📥 446
下载
💾 0
安装
1
版本
#alpha#latest

概述

OpenScan Blockchain Analysis

Comprehensive on-chain analysis skill for AI agents using the openscan CLI tool.

When to Apply

  • When a user asks about transaction history for an address
  • When analyzing gas prices or fee trends on a network
  • When tracking token balance changes over time
  • When profiling a blockchain address (type detection, balance, activity)

Prerequisites

Install the CLI globally and verify it is accessible:

npm install -g @openscan/cli
openscan --version

If openscan --version fails, ensure your npm global bin directory is in $PATH:

export PATH="$(npm prefix -g)/bin:$PATH"

Available Commands

CommandDescriptionImpact
------------------------------
openscan tx-historyTransaction history for an addressHIGH
openscan analyze-txAnalyze a single tx: call tree, addresses, contracts, prestate, raw traceHIGH
openscan gas-priceGas price history for a networkMEDIUM
openscan token-balanceToken balance historyHIGH
openscan address-typeDetect address type (EOA/contract)LOW
openscan decode-inputDecode transaction input dataMEDIUM
openscan balanceGet native token balanceLOW

Global Flags

All commands accept these flags:

FlagDescriptionRequired
-----------------------------
--chain EVM chain ID (default: 1)No
--rpc RPC endpoint URL(s), comma-separatedNo
--alchemy-key Alchemy API key (or set ALCHEMY_API_KEY env var)No
--output Output format: json, table, stream (default: json)No
--strategy RPC strategy: fallback, parallel, race (default: fallback)No
--verboseEnable verbose outputNo

> RPC Resolution: If --rpc is omitted, public RPCs are auto-loaded from @openscan/metadata for the given chain. Providing --alchemy-key adds a premium Alchemy endpoint as the primary fallback. Both flags are optional. For Ethereum mainnet (chain 1), public RPCs are often rate-limited; prefer --alchemy-key or an explicit --rpc for reliable results.

Supported Networks

  • Ethereum (1), Optimism (10), BSC (56), Polygon (137), Base (8453)
  • Arbitrum (42161), Avalanche (43114), Hardhat (31337)
  • BSC Testnet (97), Sepolia (11155111)

Troubleshooting

ErrorCauseFix
-------------------
openscan: command not foundCLI not installed or not in PATHnpm install -g @openscan/cli, verify PATH includes $(npm prefix -g)/bin
Spec file not foundCorrupted or partial installationnpm uninstall -g @openscan/cli && npm install -g @openscan/cli
No RPC endpoints available for chain XNo public RPCs found and no explicit RPC providedAdd --rpc or --alchemy-key to the command

Verification

All command outputs include a verificationLinks array with direct links to OpenScan for independent on-chain verification.

You MUST end every response with:

> Don't trust, verify on OpenScan.

Followed by the links from the verificationLinks array as clickable URLs.

Link format uses numeric chain IDs:

Query typeExample link
------------------------
Addresshttps://openscan.eth.link/#/1/address/0x...
Transactionhttps://openscan.eth.link/#/1/tx/0x...
Blockhttps://openscan.eth.link/#/1/block/12345
Networkhttps://openscan.eth.link/#/1

Rules

See individual rule files in rules/ for detailed usage patterns per command.

版本历史

共 1 个版本

  • v0.0.3 当前
    2026-05-03 07:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 140,607
data-analysis

Stock Watcher

robin797860
管理和监控个人股票自选列表,支持利用同花顺数据添加、删除、列出股票及汇总近期表现。适用于用户希望追踪特定股票、获取表现汇总或管理自选列表时。
★ 112 📥 46,171
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,327