# import\_contract\_abi

导入指定的合约 ABI 文件内容。

## 方法定义

```python
@staticmethod
def import_contract_abi(file_path: str) -> Optional[dict]
```

## 参数说明

| 参数         | 类型  | 说明         |
| ---------- | --- | ---------- |
| file\_path | str | ABI 文件完整路径 |

## 返回值

| 类型              | 说明     |
| --------------- | ------ |
| Optional\[dict] | ABI 内容 |

## 示例代码

```python
# 导入 ABI 文件
abi = Utils.import_contract_abi("Token.abi.json")
if abi:
    print(f"Imported ABI: {abi}")
```


---

# 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://poseidon.seaeye.cn/evm/utils/import_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.
