> 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/json-rpc/api-references/eth/config.md).

# Cấu hình

### eth\_coinbase <a href="#eth_coinbase" id="eth_coinbase"></a>

Trả về địa chỉ coinbase của khách hàng.

**Tham số**

Không có

**Giá trị trả về**

| type            | Mô tả                            |
| --------------- | -------------------------------- |
| DỮ LIỆU 20 byte | Địa chỉ coinbase của khách hàng. |

**Ví dụ**

```shell
// Yêu cầu
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_coinbase","params":[],"id":1}' http://localhost:8551

// Kết quả
{
  "jsonrpc": "2.0",
  "id":1,
  "result": "0xc94770007dda54cF92009BFF0dE90c06F603a09f"
}
```

### eth\_etherbase <a href="#eth_etherbase" id="eth_etherbase"></a>

Trả về địa chỉ etherbase của khách hàng.

**Tham số**

Không có

**Giá trị trả về**

| Loại           | Mô tả                             |
| --------------- | --------------------------------- |
| DỮ LIỆU 20 byte | Địa chỉ etherbase của khách hàng. |

**Ví dụ**

```shell
// Yêu cầu
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_etherbase","params":[],"id":1}' http://localhost:8551

// Kết quả
{
  "jsonrpc": "2.0",
  "id":1,
  "result": "0xc94770007dda54cF92009BFF0dE90c06F603a09f"
}
```

### eth\_chainId <a href="#eth_chainid" id="eth_chainid"></a>

Trả về chainId hiện tại được đặt trên nút yêu cầu.

**Tham số**

Không có

**Giá trị trả về**

| type     | Mô tả                               |
| -------- | ----------------------------------- |
| SỐ LƯỢNG | Mã chuỗi được đặt trên nút yêu cầu. |

**Ví dụ**

```shell
// Yêu cầu
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' http://localhost:8551

// Kết quả
{
  "jsonrpc": "2.0",
  "id":1,
  "result": "0x2019"
}
```

### eth\_gasPrice <a href="#eth_gasprice" id="eth_gasprice"></a>

Trả về mức giá hiện tại cho mỗi gas tính bằng peb.

**LƯU Ý**: API này có hành vi khác với hành vi của Ethereum và trả về giá gas của Klaytn thay vì đề xuất giá gas như trong Ethereum.

**Tham số**

Không có

**Giá trị trả về**

| type     | Mô tả                                              |
| -------- | -------------------------------------------------- |
| SỐ LƯỢNG | Giá trị nguyên chỉ giá gas hiện tại tính bằng peb. |

**Ví dụ**

```shell
// Yêu cầu
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}' http://localhost:8551

// Kết quả
{
  "jsonrpc": "2.0",
  "id":1,
  "result": "0xAE9F7BCC00" // 250,000,000,000 peb = 250 ston (Gwei)
}
```


---

# 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:

```
GET https://archive-vn.docs.klaytn.foundation/content/dapp/json-rpc/api-references/eth/config.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.
