# 合约 ABI

## 直接从 forge build 拿

```bash
cd contracts && forge build
ls out/PoBRegistry.sol/PoBRegistry.json # 含 abi 字段
```

## TypeScript import

```typescript
import PoBRegistryAbi from 'contracts/out/PoBRegistry.sol/PoBRegistry.json';
const abi = PoBRegistryAbi.abi;
```

或用 wagmi cli 自动生成 typed ABI。

## Cast interface 导出

```bash
cast interface 0xdD7870A759Cbe9B755e33ce10Fbc16962c6b44B7 \
    --rpc-url https://rpc-testnet.axblade.io \
    > IPoBRegistry.sol
```

## SDK 内置

`@babydriver/sdk` 已 bundle 9 个核心合约 ABI + Typed client。详见 [TypeScript SDK](/integration-jie-ru-fang-shi/sdk-typescript.md)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yellowpaper.axblade.io/integration-jie-ru-fang-shi/contract-abi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
