# 使用 Homebrew, winget 安装 chainhook

查看 chainhook 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:chainhook
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chainhook
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id HiroSystems.Chainhook -e
```

  证据: Windows Package Manager source index: HiroSystems.Chainhook from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:chainhook
- **软件包管理器:** Homebrew
- **版本:** 1.9.0
- **来源摘要:** Reorg-aware indexing engine for the Stacks & Bitcoin blockchains
- **主页:** <https://github.com/hirosystems/chainhook>
- **仓库:** <https://github.com/hirosystems/chainhook>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- chainhook (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.9.0
## 项目历史与用法

Chainhook is Hiro Systems' reorg-aware indexing and event trigger engine for Stacks and Bitcoin. It lets developers define predicates for the on-chain events they care about and send matching events to files or HTTP endpoints.

### 项目历史

The official README describes Chainhook as a transaction indexing engine for reliable blockchain data across forks and reorgs, focused on lighter indexes and IFTTT-style predicates. Hiro's August 2023 release roundup says Hiro launched Chainhook as an open-source engine for efficient indexing and webhook-style triggers.

### 采用历史

The README documents Homebrew installation for macOS, Snap for Linux, Winget for Windows, GitHub release builds, and source builds with cargo. Hiro later described programmatic API access for platform-hosted chainhooks, and 2025-2026 Hiro posts describe Chainhook 2.0/v2 testing, beta, and general availability, showing the concept moved from local CLI engine into hosted platform infrastructure.

### 使用方式

Developers create predicate JSON files for Bitcoin or Stacks, scan chain data with a local bitcoind or Stacks node, and route matches through actions such as HTTP POST or file append. The README covers txid, output, OP_RETURN, Ordinals, Stacks asset, event, contract-call, and contract-deployment predicates.

### 为什么软件包爱好者会关心

Chainhook is notable because it packages blockchain indexing as a developer-controlled CLI rather than only as a hosted API. For package ecosystems, it is also a Rust/Cargo-era tool distributed through Brew, Snap, Winget, source builds, and GitHub releases, aimed at developers who need reproducible local and CI behavior around on-chain events.

### 时间线

- 2023: Hiro launched Chainhook as an open-source engine for efficient indexing and webhook-style triggers.
- 2024: Hiro released Chainhook v1.3.0 with Prometheus metrics support.
- 2025: Hiro reported Chainhook 2.0 alpha testing and later limited-access beta.
- 2026: Hiro announced Chainhooks v2 generally available and migration away from hosted v1.

### Related projects

- Chainhook is related to the Stacks Blockchain API, Hiro Platform, Clarinet/devnet workflows, bitcoind, Ordhook, Ordinals indexing, and Bitcoin/Stacks node infrastructure.

### 来源

- <https://github.com/hirosystems/chainhook#readme>
- <https://www.hiro.so/blog/release-roundup-august-2023>
- <https://www.hiro.so/blog/release-roundup-february-2024>
- <https://www.hiro.so/blog/announcing-programmatic-api-access-to-chainhook-and-devnet>
- <https://www.hiro.so/blog/release-roundup---september-2025>
- <https://www.hiro.so/blog/chainhooks-v2-is-now-generally-available>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- winget - HiroSystems.Chainhook: normalized package name match | Windows Package Manager source index: HiroSystems.Chainhook from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/chainhook.yml](https://github.com/mxcl/pkgdb/blob/main/combined/chainhook.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
