简介
以太坊主网历史合约档案库,提供合约部署信息、字节码、反编译代码及权威史料,零认证即查即用。
原始描述
Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).
中文使用说明 来自收录源
核心用法
Ethereum History 是一个专为 Agent 设计的只读数据查询技能,用于检索以太坊主网历史合约的客观事实数据。该技能提供三类核心功能:
单一合约详查:通过合约地址获取完整档案,包括部署区块/时间戳、部署者地址、运行时字节码、去编译代码(如可用)、合约类型启发式分析、ERC20 代币元数据,以及人工编辑的历史摘要和背景说明。适用于用户询问"这个地址是什么合约"的场景。
合约发现浏览:支持按时代(Frontier、Homestead、DAO 分叉期等)、特色标注、文档完整度等维度筛选合约列表,支持时间范围查询(ISO 8601 格式)。适用于研究特定历史时期或探索早期合约生态。
时代脉络追踪:通过 era_id 参数快速定位特定硬分叉时期的合约部署情况,帮助理解以太坊协议演进与合约创新的时间线关系。
所有端点均为 HTTPS GET 请求,无需认证,返回蛇形命名法(snake_case)的 JSON 数据。基础 URL 默认可配置,支持本地/ staging 环境切换。
显著优点
数据来源权威性:直接对接 EthereumHistory.com 的归档数据库,该服务专注于以太坊早期历史合约的系统性收录,包含许多 Etherscan 未完整记录的 Frontier 和 Homestead 时代合约。
技术深度信息:除基础元数据外,提供运行时字节码和去编译代码(Decompiled Code),这对研究早期合约逻辑、分析 Gas 优化模式或审计历史漏洞具有独特价值。启发式分析模块还能自动识别代理合约、自毁指令、ERC20 特征等技术属性。
学术中立立场:明确承诺"非观点性"(non-opinionated)数据原则,仅陈述"某合约是什么/不是什么",避免市场炒作或投资引导,适合学术研究和链上取证场景。
查询灵活性:支持时间戳范围查询、分页机制(最大 200 条/页)和多维度过滤,既能精确定位单合约,也能进行批量历史分析。
潜在缺点与局限性
数据覆盖盲区:文档明确说明部分合约可能缺乏 short_description 等编辑内容,且当数据库未配置时,发现端点会返回空数组。这意味着完整体验依赖服务端的 PostgreSQL 数据库状态,存在可用性波动风险。
只读单向通道:纯查询设计意味着无法提交新合约信息或修正现有记录,用户发现数据缺失时需通过其他渠道反馈,形成闭环成本。
外部依赖单一性:所有数据流指向 ethereumhistory.com 单一域名,若该服务停运、限速或变更 API 结构,Skill 功能将完全失效,缺乏冗余备份机制。
去编译成功率不确定:decompilation_success 字段的存在暗示并非所有合约都能成功去编译,早期手写汇编合约或复杂优化字节码可能无法还原为可读代码。
适合的目标群体
区块链研究人员:需分析以太坊早期合约部署模式、Gas 使用演变或协议升级影响的学术工作者,可利用时代筛选和时间范围查询构建数据集。
安全审计与取证专家:调查历史漏洞事件、追踪攻击者合约演化链或验证古老合约逻辑时,字节码和去编译代码提供关键证据支持。
Web3 历史爱好者:对以太坊"考古"感兴趣的用户,可通过特色合约列表和人工编辑的历史摘要了解 DAO 分叉、The DAO 合约等里程碑事件的链上细节。
合约开发者:研究早期设计模式、学习历史 Gas 优化技巧,或验证自己的合约是否与历史知名合约存在代码关联。
使用风险与注意事项
来源可信度风险(T3):该 Skill 由个人开发者(cartoonitunes)通过 ClawHub 平台发布,无知名机构背书。尽管静态扫描未发现恶意代码,但 API 响应内容可能被操控,建议对关键合约数据交叉验证 Etherscan、Dune 等第三方源。
网络监控建议:虽然当前仅涉及 HTTPS GET 请求,但建议在使用环境中监控实际流量,防范未来版本或中间人攻击导致的异常数据上传。避免在受监管环境中查询敏感合约地址,因查询参数会发送至外部服务器。
API 可用性与变更:作为独立服务,ethereumhistory.com 的维护状态、速率限制和 API 版本稳定性存在不确定性。生产环境使用建议实现降级策略(如缓存机制或备用数据源)。
隐私合规边界:虽然符合 GDPR 最小数据原则(仅传输合约地址和查询参数),但需注意这些查询日志可能被服务端记录,形成地址关注度分析的基础数据。
技能正文
name: Ethereum History description: Read-only factual data about historical Ethereum mainnet contracts. Use when the user asks about a specific contract address, early Ethereum contracts, deployment era, deployer, bytecode, decompiled code, or documented history (what a contract is and is not). Data is non-opinionated and includes runtime bytecode, decompiled code, and editorial history when available. Base URL https://ethereumhistory.com (or set BASE_URL for local/staging).
Ethereum History — Agent Skill
Ethereum History exposes read-only, factual data about historical Ethereum mainnet contracts. Use this skill when the user asks about:
- A specific contract address (what is it, when was it deployed, who deployed it, bytecode, decompiled code, documented history)
- Early Ethereum contracts, deployment era (Frontier, Homestead, DAO fork, etc.), or undocumented/notable contracts
- Contract facts: deployer, deployment block/timestamp, short description, historical summary, links, metadata
All endpoints are GET only. No authentication required. Responses are JSON with snake_case keys.
Base URL
- Production:
https://ethereumhistory.com - Manifest (full schema):
GET {BASE_URL}/api/agent/manifest
Endpoints
1. Contract facts (one address)
GET {BASE_URL}/api/agent/contracts/{address}
Returns full factual data for one contract: address, era, deployer, deployment block/timestamp, runtime_bytecode, decompiled_code (when available), short_description, historical_summary, historical_significance, historical_context, token metadata, heuristics, links, metadata. Use when the user provides or asks about a specific contract address.
Example: GET https://ethereumhistory.com/api/agent/contracts/0xdbf03b407c01e7cd3cbea99509d93f8dddc8c6fb
2. Discovery (list contracts)
GET {BASE_URL}/api/agent/contracts
Query params (all optional):
era_id— Filter by era (e.g.frontier,homestead,dao,tangerine,spurious)featured—trueor1for featured contracts onlyundocumented_only—trueor1for contracts with no short_description yetlimit— Max 200, default 50offset— Pagination offset, default 0
Returns a list with minimal fields: address, era_id, deployer_address, deployment_timestamp, has_short_description, decompilation_success, etherscan_contract_name, token_name, token_symbol. Use for discovery; then fetch full facts via endpoint 1 if needed.
3. Temporal queries (by time range)
GET {BASE_URL}/api/agent/contracts?from_timestamp=...&to_timestamp=...
Query params:
from_timestamp— ISO 8601 (e.g.2015-07-30T00:00:00Z)to_timestamp— ISO 8601era_id,limit,offset— Same as discovery
Use when the user asks for contracts deployed in a date range or era.
Requests and responses
1. Contract facts — GET {BASE_URL}/api/agent/contracts/{address}
Request
- Path:
address— Ethereum address (0x + 40 hex chars). Required.
Success (200)
{
"data": {
"address": "string",
"era_id": "string | null",
"era": { "id": "string", "name": "string", "start_block": number, "end_block": number | null, "start_date": "string", "end_date": "string | null" } | null,
"deployer_address": "string | null",
"deployment_tx_hash": "string | null",
"deployment_block": number | null,
"deployment_timestamp": "string | null",
"runtime_bytecode": "string | null",
"decompiled_code": "string | null",
"decompilation_success": boolean,
"code_size_bytes": number | null,
"gas_used": number | null,
"gas_price": "string | null",
"heuristics": { "contract_type": "string | null", "confidence": number, "is_proxy": boolean, "has_selfdestruct": boolean, "is_erc20_like": boolean },
"etherscan_contract_name": "string | null",
"etherscan_verified": boolean,
"source_code": "string | null",
"abi": "string | null",
"token_name": "string | null",
"token_symbol": "string | null",
"token_decimals": number | null,
"token_logo": "string | null",
"short_description": "string | null",
"description": "string | null",
"historical_summary": "string | null",
"historical_significance": "string | null",
"historical_context": "string | null",
"verification_status": "string",
"links": [{ "id": number, "title": "string | null", "url": "string", "source": "string | null", "note": "string | null", "created_at": "string" }],
"metadata": [{ "key": "string", "value": "string | null", "json_value": unknown, "source_url": "string | null", "created_at": "string" }]
},
"meta": { "timestamp": "string (ISO 8601)", "cached": false }
}
Errors
- 400 — Invalid address format. Body:
{ "error": "Invalid Ethereum address format. Must be 0x followed by 40 hex characters." } - 404 — Contract not found. Body:
{ "error": "Contract not found in our historical archive." } - 500 — Server error. Body:
{ "error": "string" }
2. Discovery / temporal — GET {BASE_URL}/api/agent/contracts
Request (query params, all optional)
| Param | Type | Description |
|---|---|---|
era_id |
string | Era id: frontier, homestead, dao, tangerine, spurious |
featured |
string | true or 1 = featured only; false or 0 = no filter |
undocumented_only |
string | true or 1 = contracts with no short_description |
from_timestamp |
string | ISO 8601; deployment_timestamp >= this |
to_timestamp |
string | ISO 8601; deployment_timestamp <= this |
limit |
number | 1–200, default 50 |
offset |
number | Pagination offset, default 0 |
Success (200)
{
"data": [
{
"address": "string",
"era_id": "string | null",
"deployer_address": "string | null",
"deployment_timestamp": "string | null",
"has_short_description": boolean,
"decompilation_success": boolean,
"etherscan_contract_name": "string | null",
"token_name": "string | null",
"token_symbol": "string | null"
}
],
"meta": {
"timestamp": "string (ISO 8601)",
"cached": false,
"limit": number,
"offset": number,
"count": number
}
}
When the database is not configured, response is still 200 with "data": [] and meta.message indicating discovery requires PostgreSQL.
3. Manifest — GET {BASE_URL}/api/agent/manifest
Request: None.
Success (200): JSON object with name, id, description, version, base_url, capabilities, endpoints, terms. See the live URL for full shape.
Usage notes
- Read-only. No opinions or editorial stance. Data as documented on EthereumHistory.com.
- Factual only. What something is and is not. No hype or persuasion.
- When history (short_description, etc.) is not yet documented, contract facts still include runtime_bytecode and decompiled_code when available.
- For the full machine-readable manifest (capabilities, endpoints, terms), call
GET {BASE_URL}/api/agent/manifest.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。