← Back to Skills Marketplace
fengcheche-0

btc数据

by fengcheche-0 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
63
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install btc-data-api
Description
查询比特币链上结构数据(UTXO、大额流出、筹码分布、持仓结构、链上指标等)
README (SKILL.md)

\r \r

🚀 BTC Chain Data API 使用方式\r

\r 所有表统一支持以下三种基础查询方式:\r \r ---\r \r

1️⃣ 默认查询(最新1条)\r

python btc_api.py \x3Ctable>\r \r 示例:\r python btc_api.py bigamountvoutv3e\r \r ---\r \r

2️⃣ limit查询(最近N条)\r

python btc_api.py \x3Ctable> \x3Climit>\r \r 示例:\r python btc_api.py bigamountvoutv3e 10\r \r ---\r \r

3️⃣ 时间查询(指定日期数据)\r

python btc_api.py \x3Ctable> \x3CYYYY-MM-DD>\r \r 示例:\r python btc_api.py bigamountvoutv3e 2026-03-31\r \r ---\r \r

4️⃣ 字段查询(最新1条)\r

python btc_api.py \x3Ctable> \x3Cfield>\r \r 示例:\r python btc_api.py dailyindsv3e1 price\r python btc_api.py holder3 holder_30\r \r ---\r \r

5️⃣ 字段 + limit查询(最近N条)\r

python btc_api.py \x3Ctable> \x3Cfield> \x3Climit>\r \r 示例:\r python btc_api.py dailyindsv3e1 price 10\r \r ---\r \r

6️⃣ 字段 + 日期查询(当天数据)\r

python btc_api.py \x3Ctable> \x3Cfield> \x3CYYYY-MM-DD>\r \r 示例:\r python btc_api.py dailyindsv3e1 price 2026-03-31\r \r ---\r \r

⚠️ 注意\r

  • 同一请求仅支持单一附加参数\r
  • 不支持 limit + date 同时使用\r
  • 参数顺序固定:table → field → limit/date\r ---\r \r

API地址\r

http://10.168.1.162:9000\r \r

数据表与字段说明\r

\r ---\r \r

bigamountvoutv3e(大额UTXO输出记录)\r

  • vout\r
  • voutn\r
  • vouttype\r
  • amount\r
  • height\r
  • txid\r
  • days\r
  • buyprice\r
  • sellprice\r
  • profit\r \r ---\r \r

dailyindsv3e1(链上日级指标)\r

  • height_begin\r
  • height_end\r
  • profitrate\r
  • fees\r
  • txs\r
  • new_address\r
  • total_address\r
  • new_address_volume\r
  • active_address\r
  • send_address\r
  • receive_address\r
  • volume\r
  • eavolume\r
  • sopr:SOPR\r
  • asopr\r
  • easopr\r
  • lthsopr\r
  • sthsopr\r
  • asol\r
  • eaasol\r
  • dormancy\r
  • adormancy\r
  • eadormancy\r
  • cdd\r
  • sacdd\r
  • eacdd\r
  • day1\r
  • day7\r
  • day30\r
  • day60\r
  • day90\r
  • day180\r
  • day365\r
  • day730\r
  • csupply\r
  • mintusd\r
  • sumcsupply\r
  • sumcdd\r
  • sumeacdd\r
  • liveliness\r
  • ealiveliness\r
  • rprofit\r
  • rloss\r
  • rplrate\r
  • price\r
  • marketcap\r
  • rcap\r
  • earcap\r
  • mvrv\r
  • nupl\r
  • vdd\r ---\r \r

dailyindsv3e2(扩展估值指标)\r

  • height_begin\r
  • height_end\r
  • lth_volume\r
  • frm\r
  • cvdd\r
  • realized_price\r
  • transferred_price\r
  • balanced_price\r
  • nvt_ratio\r
  • velocity\r ---\r \r

holder3(持币人数结构)\r

  • holder_0\r
  • holder_1\r
  • holder_2\r
  • holder_3\r
  • holder_4\r
  • holder_5\r
  • holder_6\r
  • holder_7\r
  • holder_15\r
  • holder_30\r
  • holder_60\r
  • holder_90\r
  • holder_180\r
  • holder_360\r
  • holder_540\r
  • holder_720\r
  • holder_1080\r
  • holder_1440\r
  • holder_1800\r
  • holder_2160\r
  • holder_2520\r
  • holder_2880\r
  • holder_3240\r
  • holder_3600\r
  • holder_3960\r \r ---\r \r

holder_balance3(持币资金结构)\r

  • holder_balance_0\r
  • holder_balance_1\r
  • holder_balance_2\r
  • holder_balance_3\r
  • holder_balance_4\r
  • holder_balance_5\r
  • holder_balance_6\r
  • holder_balance_7\r
  • holder_balance_15\r
  • holder_balance_30\r
  • holder_balance_60\r
  • holder_balance_90\r
  • holder_balance_180:\r
  • holder_balance_360\r
  • holder_balance_540:\r
  • holder_balance_720\r
  • holder_balance_1080\r
  • holder_balance_1440\r
  • holder_balance_1800\r
  • holder_balance_2160\r
  • holder_balance_2520\r
  • holder_balance_2880\r
  • holder_balance_3240\r
  • holder_balance_3600\r
  • holder_balance_3960\r \r ---\r \r

realtimeindsv3(实时链上指标)\r

  • mempool_size\r
  • mempool_fees\r \r ---\r \r

rt_bigamountvoutv3e(实时大额UTXO输出记录)\r

  • vout\r
  • voutn\r
  • vouttype\r
  • amount\r
  • height\r
  • txid\r
  • days\r
  • buyprice\r
  • sellprice\r
  • profit\r \r ---\r \r

rt_dailyindsv3e1(实时链上日级指标)\r

  • height_begin\r
  • height_end\r
  • profitrate\r
  • fees\r
  • txs\r
  • new_address\r
  • total_address\r
  • new_address_volume\r
  • active_address\r
  • send_address\r
  • receive_address\r
  • volume\r
  • eavolume\r
  • sopr\r
  • asopr\r
  • easopr\r
  • lthsopr\r
  • sthsopr\r
  • asol\r
  • eaasol\r
  • dormancy\r
  • adormancy\r
  • eadormancy\r
  • cdd\r
  • sacdd\r
  • eacdd\r
  • day1\r
  • day7\r
  • day30\r
  • day60\r
  • day90\r
  • day180\r
  • day365\r
  • day730\r
  • csupply\r
  • mintusd\r
  • sumcsupply\r
  • sumcdd\r
  • sumeacdd\r
  • liveliness\r
  • ealiveliness\r
  • rprofit\r
  • rloss\r
  • rplrate\r
  • price\r
  • marketcap\r
  • rcap\r
  • earcap\r
  • mvrv\r
  • nupl\r
  • vdd\r ---\r \r

rt_dailyindsv3e2(实时扩展估值指标)\r

  • height_begin\r
  • height_end\r
  • lth_volume\r
  • frm\r
  • cvdd\r
  • realized_price\r
  • transferred_price\r
  • balanced_price\r
  • nvt_ratio\r
  • velocity\r ---\r \r

utxos3nd(UTXO余额分布结构)\r

  • balance_amount_0\r
  • balance_amount_001\r
  • balance_amount_01\r
  • balance_amount_1\r
  • balance_amount_10\r
  • balance_amount_100\r
  • balance_amount_1000\r
  • balance_amount_10000\r \r ---\r \r

utxosv3(UTXO结构统计)\r

  • total_address\r
  • total_balance\r
  • total_rcap\r
  • miner_address\r
  • miner_balance\r
  • balance_0\r
  • balance_001\r
  • balance_01\r
  • balance_1\r
  • balance_10\r
  • balance_100\r
  • balance_1000\r
  • balance_10000\r
  • uprofit\r
  • uloss\r
  • lthnupl\r
  • sthnupl\r
  • lthmarketcap\r
  • lthrcap\r
  • sthmarketcap\r
  • sthrcap\r
  • lthmvrv\r
  • sthmvrv\r \r ---\r \r

utxosv4(UTXO盈利与供给结构)\r

  • profit_addresses\r
  • loss_addresses\r
  • profit_ratio\r
  • lth_supply\r
  • sth_supply\r
  • realized_price\r
  • relative_lth_sth\r
  • lth_profit_supply\r
  • lth_loss_supply\r
  • lth_profit_ratio\r
  • sth_profit_supply\r
  • sth_loss_supply\r
  • sth_profit_ratio\r
  • slrv_ratio\r ---\r \r \r \r \r
Usage Guidance
This skill runs a bundled Python script that performs GET requests to http://10.168.1.162:9000 (a private LAN IP). Before installing or running it: 1) only use it if you trust the skill author and you expect that host to be reachable and safe; 2) prefer a skill that lets you configure the API host rather than hard‑coding a private IP; 3) run the skill in an isolated environment (sandbox or VM) if you are unsure, to avoid allowing the agent to probe internal network services; 4) ensure the Python environment has the 'requests' package or add a safe install step; and 5) if you want to proceed but limit risk, inspect/modify btc_api.py to point BASE_URL to a known public API or to require a user-supplied BASE_URL rather than the embedded 10.168.1.162 address.
Capability Analysis
Type: OpenClaw Skill Name: btc-data-api Version: 1.0.0 The skill bundle contains a Python script (btc_api.py) that interacts with a hardcoded internal IP address (10.168.1.162:9000), which could be used for internal network probing or SSRF. While it implements a whitelist for table names, it lacks input sanitization for the 'field' and 'params' arguments, allowing for potential path traversal or query parameter injection against the target API. These vulnerabilities, combined with the private network target, pose a risk in an automated agent environment.
Capability Assessment
Purpose & Capability
The name, description, SKILL.md and the btc_api.py implementation are consistent: the script queries specific BTC on‑chain tables and prints JSON. However, the BASE_URL is a hard‑coded private IP (10.168.1.162:9000) instead of a documented public API host or configurable setting, which is unusual and warrants caution.
Instruction Scope
SKILL.md instructs the agent/user to run the included Python script which issues HTTP GET requests to the hard‑coded internal address. The runtime instructions do not request other files or credentials, but they do direct network traffic to a private IP on your network — a vector for internal probing or indirect data exfiltration if the agent runs in an environment with access to internal services.
Install Mechanism
There is no install spec (instruction-only), so nothing extra is written to disk. The bundled python script depends on the 'requests' library, but the skill only declares python3 as a required binary — it does not declare or install the requests dependency, which will cause runtime failures unless the environment already has requests installed.
Credentials
The skill requests no environment variables or credentials (good). That said, its ability to make outbound HTTP calls to a local IP is the primary risk vector rather than stolen credentials.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistence. Autonomous invocation is allowed (platform default) but is not combined with other high privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install btc-data-api
  3. After installation, invoke the skill by name or use /btc-data-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of btc-chain-data-api. - Provides command-line access to query Bitcoin on-chain structural data, including UTXO, large outputs, chip distribution, holding structure, and various on-chain metrics. - Supports six query modes: default (latest), limit (recent N), date-based, field query, field + limit, and field + date. - Offers comprehensive documentation for usage and available data tables/fields. - Usage restrictions: only one additional parameter per request; limit and date cannot be combined; strict parameter order. - API endpoint and detailed schema for each supported table are included.
Metadata
Slug btc-data-api
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is btc数据?

查询比特币链上结构数据(UTXO、大额流出、筹码分布、持仓结构、链上指标等). It is an AI Agent Skill for Claude Code / OpenClaw, with 63 downloads so far.

How do I install btc数据?

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

Is btc数据 free?

Yes, btc数据 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does btc数据 support?

btc数据 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created btc数据?

It is built and maintained by fengcheche-0 (@fengcheche-0); the current version is v1.0.0.

💬 Comments