> For the complete documentation index, see [llms.txt](https://archive-vn.docs.klaytn.foundation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archive-vn.docs.klaytn.foundation/content/dapp/developer-tools/getting-started/klaytn-safe/contract-interaction.md).

# Tương tác hợp đồng

Trong phần này, bạn sẽ tương tác và gửi giao dịch đến một hợp đồng đơn giản được triển khai trên Baobab bằng cách sử dụng ví đa chữ ký mới được tạo của chúng tôi.

**Điều kiện tiên quyết**

* [Metamask](https://metamask.io/download/) & [Cấu hình Klaytn Metamask](https://docs.klaytn.foundation/dapp/tutorials/connecting-metamask#send-klay)
* [Remix](https://remix.ethereum.org/) & [Plugin Klaytn Remix](https://klaytn.foundation/using-klaytn-plugin-on-remix/)
* Kiểm tra KLAY từ [Faucet](https://baobab.wallet.klaytn.foundation/faucet)

**Bước 1:** Điều hướng đến [Remix](https://remix.ethereum.org/)

**Bước 2:** Lập và triển khai **hợp đồng lưu trữ** mẫu.

Trước tiên, hợp đồng phải được triển khai trước khi bạn có thể tương tác với nó trong ví nhiều chữ ký của mình. Hợp đồng mẫu này chứa một biến “number” uint đơn giản có thể được cập nhật bằng cách gọi ra phương pháp **lưu trữ** và được truy xuất bằng cách gọi ra phương pháp **truy xuất**.

![](/files/BdHVxlw3gUKYZbicHGzQ)

**Bước 3:** Bắt đầu một giao dịch mới.

Để tương tác với hợp đồng thông minh trong ví safe của bạn, hãy nhấp vào **“New Transaction”** Để hoàn tất bước này, bạn sẽ cần địa chỉ hợp đồng đã được triển khai và ABI của mình như được minh họa trong bước trước.

![](/files/gN0CzNgEgcUQYxeoVI2X)

**Bước 4:** Xem lại và gửi giao dịch. Bạn sẽ cần ký giao dịch bằng ví người ký của mình và sẽ được thực hiện sau khi đạt đến ngưỡng xác nhận.

![](/files/DGt9fsuS2soxfyWSidHD)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://archive-vn.docs.klaytn.foundation/content/dapp/developer-tools/getting-started/klaytn-safe/contract-interaction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
