360 Secure SkillHub
360 安全技能中心

Beaconchain

通过 Python 脚本调用 beaconcha.in V2 聚合接口,每日一次检查以太坊验证者仪表盘健康状态,优先读取 BeaconScore,缺失时回退到漏签/罚没信号;输出简洁文本或 JSON,并用 0/1/2 退出码区分正常、异常与错误,便于 cron 或低焦虑的日常巡检。

分类:自动化
thisisjeron
thisisjeron
热度 53.53
最近更新 2026-05-11 16:23:40

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add thisisjeron/beaconchain
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
beaconchain
description
Monitor Ethereum validator dashboard health on beaconcha.in via V2 API, focused on one-check-per-day status and BeaconScore-first triage. Use when the user asks to check validator health, BeaconScore, missed duties, or set up low-anxiety daily monitoring/alerts for a beaconcha.in dashboard.
metadata
{"openclaw":{"requires":{"bins":["python3"],"env":["BEACONCHAIN_API_KEY","BEACONCHAIN_DASHBOARD_ID"]},"disableModelInvocation":true}}

Beaconchain

Use this skill to reduce validator-check anxiety: do one concise daily health check, then only surface issues.

Quick Start

  1. Set credentials as env vars:
    • BEACONCHAIN_API_KEY
    • BEACONCHAIN_DASHBOARD_ID
  2. Run:
python3 skills/beaconchain/scripts/check_dashboard.py --json
  1. Interpret exit code:
    • 0 = good
    • 2 = bad (needs attention)
    • 1 = error (auth/rate-limit/endpoint failure)

Monitoring Workflow

  1. Run scripts/check_dashboard.py once per day.
  2. If status=good, respond with a short reassurance and avoid extra detail.
  3. If status=bad, report:
    • BeaconScore (if available)
    • Which signal tripped (missed/penalty fallback)
    • Next action: inspect dashboard details and validator logs.
  4. If status=error, report key checks:
    • API key validity
    • dashboard ID
    • plan/rate-limit permissions.

Command Patterns

Basic check

python3 skills/beaconchain/scripts/check_dashboard.py

JSON output (for cron/parsing)

python3 skills/beaconchain/scripts/check_dashboard.py --json

Custom threshold

python3 skills/beaconchain/scripts/check_dashboard.py --warn-threshold 75

Notes

  • Script uses POST /api/v2/ethereum/validators/performance-aggregate with dashboard selector and reads data.beaconscore.total directly.
  • Default window is 24h; supported windows: 24h, 7d, 30d, 90d, all_time.
  • Keep responses intentionally terse when healthy to support low-anxiety operations.

Security & Transparency

  • Runtime: python3 only, using Python standard library (argparse, json, urllib, datetime).
  • Credentials: reads BEACONCHAIN_API_KEY and BEACONCHAIN_DASHBOARD_ID (or equivalent CLI flags).
  • Network egress: only https://beaconcha.in/api/v2/ethereum/validators/performance-aggregate.
  • Local filesystem: no writes, no shell execution, no subprocess spawning.

References

  • API overview: references/api-notes.md