·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-10

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