gas-spike-monitor
暂无简介
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-12
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- gas-spike-monitor
- track
- web3-data-intelligence
- summary
- Monitor gas price spikes across blockchain networks with real-time RPC data
- version
- 0.1.0
02 资源文件 4
- 参考文档README.md3.0 KB
- 脚本scripts/main.py5.8 KB
- 参考文档SOURCE.md376 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Description
Monitor gas price spikes across blockchain networks including Ethereum, Polygon, Arbitrum, Optimism, and BSC. Compares current gas prices against baseline values and triggers alerts when spikes exceed configured thresholds with live RPC integration.
Inputs
{
"network": "ethereum",
"current_gas_gwei": 85,
"baseline_gas_gwei": 30,
"spike_threshold_percentage": 50,
"use_live_prices": false
}
Inputs (Live Mode)
{
"network": "ethereum",
"baseline_gas_gwei": 30,
"spike_threshold_percentage": 50,
"use_live_prices": true
}
Outputs
{
"ok": true,
"data": {
"network": "ethereum",
"current_gas_gwei": 85.0,
"baseline_gas_gwei": 30.0,
"spike_percentage": 183.33,
"spike_threshold_percentage": 50,
"is_spike": true,
"status": "critical",
"alert_triggered": true,
"price_source": "provided",
"recommendation": "⚠️ CRITICAL: Gas prices extremely high. Wait for network congestion to clear.",
"check_timestamp": "2026-02-07T08:30:00Z"
}
}
Usage
With Provided Prices
python scripts/main.py --params '{"network":"ethereum","current_gas_gwei":85,"baseline_gas_gwei":30,"spike_threshold_percentage":50}'
With Live RPC Fetching
python scripts/main.py --params '{"network":"ethereum","baseline_gas_gwei":30,"use_live_prices":true,"spike_threshold_percentage":50}'
Examples
Example 1: Ethereum Spike Detection
$ python scripts/main.py --params '{"network":"ethereum","current_gas_gwei":120,"baseline_gas_gwei":30,"spike_threshold_percentage":50}'
{
"ok": true,
"data": {
"network": "ethereum",
"current_gas_gwei": 120.0,
"baseline_gas_gwei": 30.0,
"spike_percentage": 300.0,
"status": "critical",
"is_spike": true,
"alert_triggered": true,
"price_source": "provided",
"recommendation": "⚠️ CRITICAL: Gas prices extremely high. Wait for network congestion to clear.",
"check_timestamp": "2026-02-07T08:30:00Z"
}
}
Example 2: Polygon Normal Conditions
$ python scripts/main.py --params '{"network":"polygon","current_gas_gwei":45,"baseline_gas_gwei":50,"spike_threshold_percentage":25}'
{
"ok": true,
"data": {
"network": "polygon",
"current_gas_gwei": 45.0,
"baseline_gas_gwei": 50.0,
"spike_percentage": -10.0,
"status": "normal",
"is_spike": false,
"alert_triggered": false,
"price_source": "provided",
"recommendation": "✓ Normal: Gas prices within acceptable range.",
"check_timestamp": "2026-02-07T08:30:00Z"
}
}
Example 3: Live Ethereum Price Check
$ python scripts/main.py --params '{"network":"ethereum","baseline_gas_gwei":40,"use_live_prices":true,"spike_threshold_percentage":75}'
{
"ok": true,
"data": {
"network": "ethereum",
"current_gas_gwei": 52.5,
"baseline_gas_gwei": 40.0,
"spike_percentage": 31.25,
"status": "elevated",
"is_spike": false,
"alert_triggered": false,
"price_source": "live_rpc",
"recommendation": "⚠️ ELEVATED: Gas prices above normal. Consider batching transactions or using L2.",
"check_timestamp": "2026-02-07T08:30:00Z"
}
}
Error Handling
When an error occurs, the skill returns:
{
"ok": false,
"error": "Error description",
"details": "Additional context"
}
Supported Networks
- ethereum: Ethereum mainnet
- polygon: Polygon PoS
- arbitrum: Arbitrum One
- optimism: Optimism mainnet
- bsc: Binance Smart Chain
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.