開發者 API
訪問與限額
基礎地址:https://www.blockgrey.com/api
匿名訪問按 IP 限制每分鐘請求數;攜帶請求頭 X-API-Key 可獲得更高限額並使用關注與告警接口。請在賬戶頁獲取 API Key。
金額
聚合金額使用 zatoshi;原始節點 JSON 保留節點字段單位。巨鯨 min 參數使用 ZEC。
接口列表
| 方法 | 路徑 | 說明 |
|---|---|---|
| GET | /api/zcash/activity?days=7|30|90 | 交易活躍時段 |
| GET | /api/zcash/address-inspect?address= | 地址解析 |
| GET | /api/zcash/status | 索引器與全節點高度、同步進度、Mempool 數量 |
| GET | /api/zcash/blocks?before=&limit= | 區塊列表(倒序) |
| GET | /api/zcash/block/{height|hash}?page= | 區塊詳情與交易列表 |
| GET | /api/zcash/tx/{txid} | 交易詳情(已補全輸入地址與金額、屏蔽組件) |
| GET | /api/zcash/address/{address}?page= | 地址餘額、交易記錄、餘額曲線;支持 t 地址、UA、TEX |
| GET | /api/zcash/address/{address}/cospend | 共同輸入地址(行為推導) |
| GET | /api/zcash/search?q= | 識別高度 / 哈希 / 交易 ID / 地址 |
| GET | /api/zcash/mempool | 未確認交易 |
| GET | /api/zcash/charts?interval=day|week|month | 按週期聚合的鏈上指標 |
| GET | /api/zcash/pools | 最新價值池餘額 |
| GET | /api/zcash/whales/holdings | 巨鯨持倉與分佈 |
| GET | /api/zcash/mining?days= | 礦池份額 |
| GET | /api/zcash/whales?min=&days=&blocks= | 大額透明轉賬 |
| GET | /api/zcash/shielded-flows?min=&days=&blocks= | 大額屏蔽池進出 |
| GET | /api/zcash/value-pools?days= | 價值池賬本、遷移與每日流量 |
| GET | /api/entities?chain=zcash | 實體列表 |
| GET | /api/entity/{slug} | 實體詳情、地址與資金流 |
| GET | /api/zcash/graph/address/{address}?txs= | 一跳資金圖譜 |
| GET | /api/zcash/upgrades | 網絡升級與激活高度 |
| GET | /api/zcash/reorgs | 重組記錄 |
| GET/POST | /api/watchlist | 關注地址(需 X-API-Key,可設置 https webhook_url) |
| DELETE | /api/watchlist/{addr}?chain= | 移除關注地址 |
| GET | /api/alerts | 關注地址的資金變動告警(需 X-API-Key) |
| SSE | /ws/events | 實時事件:block / mempool / reorg / alert |