·indexing
{}

indexing

如何读取和查询链上数据——事件、图表、索引模式。为什么不能只循环块,以及使用什么来代替。

29安装·0热度·@austintgriffith

安装

$npx skills add https://github.com/austintgriffith/ethskills --skill indexing

如何安装 indexing

通过命令行快速安装 indexing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/austintgriffith/ethskills --skill indexing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:austintgriffith/ethskills。

SKILL.md

查看原文

You try to query historical state via RPC calls. You can't cheaply read past state. ethcall reads current state. Reading state at a historical block requires an archive node (expensive, slow). For historical data, you need an indexer.

You loop through blocks looking for events. Scanning millions of blocks with ethgetLogs is O(n) — it will timeout, get rate-limited, or cost a fortune in RPC credits. Use an indexer that has already processed every block.

You store query results onchain. Leaderboards, activity feeds, analytics — these belong offchain. Compute offchain, index events offchain. If you need an onchain commitment, store a hash.

如何读取和查询链上数据——事件、图表、索引模式。为什么不能只循环块,以及使用什么来代替。 来源:austintgriffith/ethskills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/austintgriffith/ethskills --skill indexing
分类
{}数据分析
认证
收录时间
2026-02-22
更新时间
2026-03-11

Browse more skills from austintgriffith/ethskills

快速解答

什么是 indexing?

如何读取和查询链上数据——事件、图表、索引模式。为什么不能只循环块,以及使用什么来代替。 来源:austintgriffith/ethskills。

如何安装 indexing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/austintgriffith/ethskills --skill indexing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/austintgriffith/ethskills

详情

分类
{}数据分析
来源
skills.sh
收录时间
2026-02-22