返回顶部
s

settlement-predictor链上结算预测器

Real-time on-chain settlement predictor for Ethereum, Bitcoin, Arbitrum, Optimism, Base & Polygon. Live gas tiers, mempool analysis, sandwich risk detection, transaction tracking, and fee trend analysis — zero API keys required for core features.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.3.1
安全检测
已通过
142
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

settlement-predictor

结算预测器技能

EVM链的实时链上结算预测和内存池分析。

功能特性

  • - Gas 预测 — 实时 Gas 档位(即时/快速/标准/慢速)及网络拥堵指标
  • 结算时间预测 — 估算在给定 Gas 价格下交易所需时间
  • 最优窗口查找 — 识别发送交易的最便宜时间窗口
  • 待处理池分析器 — 在交易前检测三明治攻击风险和 DEX 冲突
  • 交易追踪器 — 追踪已提交交易直至确认或失败
  • Gas 趋势分析 — 滚动历史数据 + 线性回归检测上涨/下跌通道

可选 API 密钥

所有密钥均为可选。没有它们,核心功能也能完全运行。

bash
export ETHERSCANAPIKEY=your_key # https://etherscan.io/myapikey
export TENDERLYAPIKEY=your_key # https://dashboard.tenderly.co/

使用方法

bash

Gas 预测(所有 6 条链:ethereum, arbitrum, optimism, base, polygon, bitcoin)


python settlement_predictor.py get-gas-prediction --chain ethereum
python settlement_predictor.py btc-fee-estimate --urgency medium

预测结算时间

python settlement_predictor.py predict-settlement --chain ethereum --gas-price 30

查找最优窗口

python settlement_predictor.py get-optimal-window --chain ethereum --urgency high

分析待处理池的三明治攻击风险

python settlement_predictor.py analyze-pending-pool \ --chain ethereum \ --pool-address 0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852 \ --direction buy \ --amount-usd 10000

追踪交易

python settlement_predictor.py track-tx --chain ethereum --tx-hash 0x...

Gas 趋势分析(多次运行以累积历史数据)

python settlement_predictor.py analyze-gas-trend --chain ethereum

BTC 趋势分析

python settlement_predictor.py analyze-btc-trend

验证合约 + 扫描风险(需要 ETHERSCANAPIKEY)

python settlement_predictor.py verify-contract --chain ethereum \ --address 0xdAC17F958D2ee523a2206206994597C13D831ec7

获取代币信息(ERC-20 元数据)

python settlement_predictor.py get-token-info --chain ethereum \ --address 0xdAC17F958D2ee523a2206206994597C13D831ec7

模拟交易(需要 TENDERLYAPIKEY)

python settlement_predictor.py simulate-tx \ --chain ethereum --to 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D \ --value 0.01

运行 python settlement_predictor.py --help 查看所有命令。

链上结算预测器

链上结算预测器 — 实时 Gas 分析、Mempool 监控与交易追踪

EVM 兼容链的实时链上结算预测、内存池分析和交易追踪。基本功能无需 API 密钥。



中文说明

功能特性

工具功能
get-gas-prediction实时获取各档位 Gas(instant/fast/standard/slow)及网络拥堵度
predict-settlement
根据给定 Gas 价格预测交易结算时间与包含概率 | | get-optimal-window | 分析 24 小时 Gas 规律,找到最优交易窗口 | | analyze-pending-pool | 扫描 Mempool 中的待处理交易,检测三明治攻击与 DEX 冲突风险 | | track-tx | 追踪已提交的交易,等待上链确认或失败回执 | | verify-contract | Etherscan API 验证合约源码 + 安全风险扫描(需 Key)| | get-token-info | 获取代币元数据(名称、符号、总供应量、精度)(需 Key)| | get-internal-txs | 获取交易内部调用追踪(Etherscan API)(需 Key)| | btc-fee-estimate | BTC 实时费率(sat/vB)+ Mempool 拥堵度,无需 API Key | | btc-predict-settlement | 预测给定 sat/vB 费率下的 BTC 交易确认时间和概率 | | btc-optimal-window | 分析 UTC 小时规律,找到最便宜的 BTC 交易时段 | | track-btc-tx | 追踪 BTC 交易状态(mempool.space)| | analyze-gas-trend | EVM 链 Gas 趋势分析,判断涨跌通道 | | analyze-btc-trend | BTC 手续费趋势分析,判断上涨/回落通道 |

支持链

Chain ID费用单位APIKey
Ethereum1GweiEtherscan V2可选
Arbitrum
42161 | Gwei | Arbiscan | 可选 | | Optimism | 10 | Gwei | Optimism Etherscan | 可选 | | Base | 8453 | Gwei | Basescan | 可选 | | Polygon | 137 | Gwei | Polygonscan | 可选 | | Bitcoin | 0 | sat/vB | mempool.space | 免费无需Key |

安装

bash
pip install web3>=6.0.0
python settlement_predictor.py --help

API Key 配置(可选)

基础功能(Gas 预测、结算时间、Mempool 分析)无需 Key,开箱即用。

可选 Key(通过环境变量设置):

Key功能免费申请
ETHERSCANAPIKEY合约验证、代币详情、失败原因解码、内部交易追踪https://etherscan.io/myapikey
TENDERLYAPIKEY
交易模拟(精准 Gas + 回滚预测) | https://dashboard.tenderly.co/ |

bash
export ETHERSCANAPIKEY=你的API密钥
export TENDERLYAPIKEY=你的API密钥

使用示例

bash

1. 查询当前 Gas 行情


python settlement_predictor.py get-gas-prediction -c ethereum

2. 预测结算时间

python settlement_predictor.py predict-settlement -c ethereum -g 30

3. 寻找最优交易窗口

python settlement_predictor.py get-optimal-window -c ethereum -u high

4. 分析 Mempool 风险(防范三明治攻击)

python settlement_predictor.py analyze-pending-pool \ -c ethereum \ -p 0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852 \ -d buy -a 10000

5. 追踪交易状态(含 Etherscan 失败原因解码)

python settlement_predictor.py track-tx \ -c ethereum \ -t 0xabc123...

6. 合约安全验证(源码 + 风险扫描)🔥

python settlement_predictor.py verify-contract \ -c ethereum \ -a 0xdAC17F958D2ee523a2206206994597C13D831ec7

7. 代币信息查询(名称、符号、总供应量)🔥

python settlement_predictor.py get-token-info \ -c ethereum \ -a 0xdAC17F958D2ee523a2206206994597C13D831ec7

8. 交易内部调用追踪(需 Etherscan API Key)🔥

python settlement_predictor.py get-internal-txs \ -c ethereum \ -t 0xabc123...

9. BTC 费率查询

python settlement_predictor.py btc-fee-estimate --urgency medium

10. 预测 BTC 结算时间

python settlement_predictor.py btc-predict-settlement --sat 3 --urgency high

11. 最优 BTC 交易窗口

python settlement_predictor.py btc-optimal-window --urgency low

12. 追踪 BTC 交易

python settlement_predictor.py track-btc-tx \ --tx 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

13. Gas 趋势分析(EVM 链)

python settlement_predictor.py analyze-gas-trend -c ethereum

14. BTC 手续费趋势分析

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 settlement-predictor-1776012137 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 settlement-predictor-1776012137 技能

通过命令行安装

skillhub install settlement-predictor-1776012137

下载

⬇ 下载 settlement-predictor v1.3.1(免费)

文件大小: 25.03 KB | 发布时间: 2026-4-13 11:57

v1.3.1 最新 2026-4-13 11:57
v1.3.1: Full rewrite (2450 lines) — all 15 commands implemented, SQLite cache, complete error handling. v1.3.0: Removed v2 roadmap section per user request.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部