> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/ko/gaebal/gibon/tip-teurik.md).

# 팁 & 트릭

## Spicy Testnet에서 자체 토큰 만드는 방법

Chiliz Chain Mainnet에서 앱을 개발하려면 먼저 Spicy Testnet에서 테스트하여 코드가 testCHZ 토큰을 올바르게 처리하는지 확인해야 합니다. 이를 위해 Spicy Faucet에서 무료로 Testnet 토큰을 받을 수 있습니다.

{% content-ref url="/pages/qiix4G9ofyknkfg1PvVE" %}
[무료 Testnet 토큰 받기](/ko/gaebal/gibon/teseuteuseunet-token.md)
{% endcontent-ref %}

하지만 때로는 개발에 많은 테스트 토큰이 필요한데 Faucet은 하루에 받을 수 있는 토큰 수가 제한되어 있습니다.

이 제한에서 벗어나기 위해 Spicy Testnet에서 자체 토큰을 만들 수 있습니다! Chiliz Chain(Mainnet과 Testnet 모두)은 EVM 호환 체인이며, CHZ와 testCHZ 토큰은 실제로 ERC20 토큰입니다.

따라서 Spicy Testnet에서 자신만의 무제한에 가까운 ERC20 토큰을 발행하고 해당 토큰으로 코드를 철저히 테스트할 수 있습니다. 그런 다음 준비가 되었다고 느끼면 Chiliz Chain Mainnet에 배포하기 전에 Spicy에서 테스트 CHZ 토큰으로 dApp을 몇 번 더 테스트하세요.

Spicy Testnet에서 자체 토큰을 만드는 단계:

1. [MetaMask를 Chiliz Spicy Testnet에 연결](/ko/baeuggi/jigap/metamask-sayong/chiliz-metamask-yeongyeol.md)합니다.
2. [Spicy Faucet에서 테스트 CHZ 토큰을 받습니다](/ko/gaebal/gibon/teseuteuseunet-token.md). ERC20 컨트랙트를 배포하려면 CHZ 토큰이 필요합니다.
3. 토큰의 스마트 컨트랙트를 작성합니다([OpenZeppelin의 ERC20](https://docs.openzeppelin.com/contracts/5.x/erc20) 사용 권장). `constructor`에서 토큰 이름(예: "MyOwnToken"), 심볼(예: "MOT"), 필요에 충분한 초기 공급량을 설정합니다.
4. [컨트랙트를 Spicy Testnet에 컴파일하고 배포한](/ko/gaebal/gibon/seumateu-keonteulaekteu-baepoe.md) 후 [블록 탐색기](/ko/gaebal/gibon/beullok-tamsaeggi.md)를 통해 검증합니다.
5. MetaMask에서 새 토큰 확인:
   1. 배포 툴셋(예: Remix의 "배포된 컨트랙트" 메뉴)에서 토큰의 컨트랙트 주소를 복사합니다.
   2. MetaMask에서 "토큰" 탭으로 이동하여 "토큰 가져오기"를 클릭합니다.
   3. 컨트랙트 주소를 붙여넣습니다. 심볼과 소수점은 자동으로 채워집니다.
   4. "사용자 정의 토큰 추가"를 클릭한 후 "토큰 가져오기"를 클릭합니다. 이제 새 토큰 잔액이 표시됩니다.

이제 자체 토큰으로 Spicy Testnet에서 Chiliz Chain dApp을 테스트할 준비가 되었습니다!

## 현재 가스 가격 조회 방법

Chiliz Chain의 가스 가격을 조회하려면 [공개 RPC 노드 중 하나](https://docs.chiliz.com/develop/connect-to-chiliz-chain/connect-using-rpc)를 사용할 수 있습니다.

다음과 같이 현재 가스 가격을 조회할 수 있습니다.

```bash
curl --location 'https://rpc.ankr.com/chiliz' # Spicy의 경우: https://spicy-rpc.chiliz.com/
--header 'Content-Type: application/json' 
--data '{ 
    "method": "eth_gasPrice", 
    "params": [], 
    "id": 1, 
    "jsonrpc": "2.0"
}'
```

## 트랜잭션 실패 원인 확인 방법

트랜잭션이 실패할 수 있으며, 특히 블록 탐색기가 오류를 표시하지 않는 경우 원인을 알기 어려울 수 있습니다.

{% hint style="warning" %}
트랜잭션이 "보류 중" 상태로 너무 오래 남지 않으려면 수수료를 충분히 포함해야 합니다.

* 최소 가스 수수료: 2,501 Gwei.
* 최소 우선 수수료: 1 Gwei.
  {% endhint %}

트랜잭션이 실패한 이유를 확인하려면 올바른 트랜잭션 ID로 터미널에서 다음 스크립트를 실행하세요.

```bash
curl --location 'https://rpc.ankr.com/chiliz' # Spicy의 경우: https://spicy-rpc.chiliz.com/
--header 'Content-Type: application/json' 
--data '{
    "method": "debug_traceTransaction",
    "params": [
        "[Transaction ID]",
        {
            "tracer": "callTracer"
        }
    ],
    "id": 1,
    "jsonrpc": "2.0"
}'
```


---

# 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://docs.chiliz.com/ko/gaebal/gibon/tip-teurik.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.
