# 与合约交互

在搜索栏输入合约地址即可查看合约管理者(admin/owner)、合约名、交易等信息。点击图中红框内 “合约”选项，若合约已验证，选项右侧显示绿勾，则可以查看此合约的源码、ABI，以及交互等信息；若尚未验证，选项右侧显示**红色感叹号**，需要先上传合约代码进行验证。

![](/files/uDIacgoso2wg53DCKCTY)

## 已验证的合约

在已验证的合约下方有三个按钮，分别是 “合约”、“读取合约”和“写入合约”。点击“合约”可以查看源码等信息，“读取合约”可以查询合约对外暴露的状态信息，“写入合约”可以调用合约的 public 或 external 函数来改变合约状态。

### 合约信息

点击“合约”，可以在下方查看合约源码、ABI、编译器版本、授权证书等信息。

![](/files/TC6XQLdfDktIvg7wBUuC)

![](/files/TRlSPoPMjYLsfgmky5mv)

### 读取合约

点击“读取合约”，可以显示合约的 view 函数，可以根据函数名称点击获取想要的数据，比如点击 name 函数，Scan 就会与合约交互，合约将返回 name 属性。

![](/files/ptQTmrzCtDuHftNTShf0)

### 写入合约

点击“写入合约”，可以显示合约的 public 和external 函数，调用此类函数将会改变合约状态，例如在此合约中点击 safeTransferFrom 函数，然后在下方填入对应参数，即可将自己账户中的 NFT 转移到另一个地址。

![](/files/ItfUt8nFRUoPCW4T7TAi)


---

# 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://conflux-technical-support.gitbook.io/conflux-nft-kai-fa-zhi-nan/step-1-ren-shi-confluxscan/yu-he-yue-jiao-hu.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.
