> 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/getting-started/quick-start.md).

# Triển khai hợp đồng thông minh bằng KEN

![](/files/OoQtFhIemYlnLJKOoF6y)

Trước khi bắt đầu, hãy làm quen với một số thuật ngữ riêng của Klaytn.

* **Nút điểm cuối (EN)**: Nút xử lý các yêu cầu API JSON-RPC gửi đến mạng lưới Klaytn. Nút điểm cuối không tham gia vào thuật toán đồng thuận.
* **KLAY**: đồng tiền mặc định của Klaytn.
* **caver-js**: Triển khai JavaScript của API JSON-RPC của Klaytn.
* **Baobab**: mạng thử nghiệm của Klaytn
* **Cypress**: mạng chính thức của Klaytn

Hướng dẫn từng bước này sẽ hỗ trợ bạn trong quá trình khởi chạy Nút điểm cuối (EN) của mạng thử nghiệm Baobab và xây dựng hợp đồng thông minh cơ bản bằng tài khoản mới của bạn. Hướng dẫn này bao gồm hai phần, thiết lập một EN và triển khai một hợp đồng thông mình qua EN của bạn.

> Hướng dẫn này sử dụng mạng thử nghiệm **Baobab** bởi vì việc triển khai hợp đồng thông minh và gửi giao dịch sẽ cần đến phí giao dịch tính bằng KLAY. Vì mục đích phát triển, bạn có thể nhận KLAY cho mạng thử nghiệm từ [vòi Baobab](https://baobab.wallet.klaytn.foundation/faucet).

## 1. Khởi chạy Nút điểm cuối và thêm KLAY của mạng thử nghiệm Baobab vào Tài khoản của bạn (Linux, Mac) <a href="#id-1-launch-an-endpoint-node-and-add-baobab-testnet-klay-to-your-account-linux-mac" id="id-1-launch-an-endpoint-node-and-add-baobab-testnet-klay-to-your-account-linux-mac"></a>

Phần đầu tiên của hướng dẫn này giải thích cách khởi chạy một EN, tạo một tài khoản mới, và nạp tiền cho tài khoản của bạn bằng vòi trong ví Klaytn Baobab.

* [Khởi chạy nút điểm cuối](/content/getting-started/quick-start/launch-an-en.md)
* [Nạp tiền vào tài khoản](/content/getting-started/quick-start/top-up-your-account.md)

## 2. Triển khai hợp đồng thông minh: KlaytnGreeter <a href="#id-2-deploying-a-smart-contract-klaytngreeter" id="id-2-deploying-a-smart-contract-klaytngreeter"></a>

Phần thứ hai của hướng dẫn này chỉ ra các tạo hợp đồng thông minh và triển khai chúng trên mạng thử nghiệm Baobab. Trước khi tiến hành phát triển hợp đồng thông minh, bạn cần thiết lập các công cụ phát triển, cài đặt caver-js và Truffle.

* [Cài đặt các công cụ phát triển](/content/getting-started/quick-start/install-development-tools.md)
* [Triển khai hợp đồng thông minh](/content/getting-started/quick-start/deploy-a-smart-contract.md)
* [Kiểm tra quy trình triển khai](/content/getting-started/quick-start/check-the-deployment.md)


---

# 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/getting-started/quick-start.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.
