# Pembuat kode

#### **`encode_uint8`**

Mengubah uint8 ke sel.

```
function encode_uint8(uint8 num) external responsible pure returns (TvmCell)
```

**Parameter:**

| Nama | Jenis | Deskripsi                            |
| ---- | ----- | ------------------------------------ |
| num  | uint8 | Nilai uint8 untuk dituliskan kodenya |

**Nilai hasil:**

| Jenis   | Deskripsi                           |
| ------- | ----------------------------------- |
| TvmCell | Menuliskan kode angka ke format sel |

#### **`encodeEthereumStakingEventData`**

Mengubah data acara taruhan Ethereum ke sel.

```
function encodeEthereumStakingEventData(uint160 eth_addr, int8 wk_id, uint256 ton_addr_body) public pure returns (TvmCell data)
```

**Parameter:**

| Nama            | Jenis   | Deskripsi        |
| --------------- | ------- | ---------------- |
| eth\_addr       | uint160 | Alamat Ethereum  |
| wk\_id          | int8    | ID workchain     |
| ton\_addr\_body | uint256 | Tubuh alamat ton |

**Nilai hasil:**

| Nama | Jenis   | Deskripsi                                             |
| ---- | ------- | ----------------------------------------------------- |
| data | TvmCell | Data acara taruhan Ethereum dituliskan kodenya ke sel |


---

# 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://docs.octusbridge.io/ob-id/integrate/octus-bridge-contracts/everscale/staking-section/encoder.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.
