# Caver-java-ext-kas 이용시 오류

**URL:** <https://devforum.kaia.io/t/caver-java-ext-kas/1863>\
**Category:** Caver\
**Created:** [9월 15, 2021, 8:18오전 UTC](https://devforum.kaia.io/t/caver-java-ext-kas/1863 "2021-09-15T08:18:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![x2hokim](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/x2hokim/32/826_2.png) [@x2hokim](https://devforum.kaia.io/u/x2hokim)\
**Post date:** [9월 15, 2021, 8:18오전 UTC](https://devforum.kaia.io/t/caver-java-ext-kas/1863/1 "2021-09-15T08:18:56Z")

</div>

> **[Klaytn에서 Truffle을 이용하여 NFT 발행하기](https://klaytn-tech.medium.com/klaytn%EC%97%90%EC%84%9C-truffle%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%98%EC%97%AC-nft-%EB%B0%9C%ED%96%89%ED%95%98%EA%B8%B0-5e45b39e87c5)**
>
> 먼저 클레이튼이 무엇인지 알아보도록 하겠습니다. 클레이튼은 카카오의 자회사인 GroundX에서 개발한 블록체인 플랫폼입니다. 더 자세한 정보는 클레이튼 홈페이지, Position Paper, Klaytn Docs 등에서 확인하시기 바랍니다. NFT는 Non-Fungible Token의 약자로, 그대로 번역하면 대체 불가능한 토큰입니다. 이더리움의…

에 있는 KIP17 mint코드를 실행해보고 있는데 아래와 같은 오류가 발생하였습니다.

17:15:39.689 [main] DEBUG org.web3j.protocol.http.HttpService - → POST [https://node-api.klaytnapi.com/v1/klaytn](https://node-api.klaytnapi.com/v1/klaytn)  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - Content-Type: application/json; charset=utf-8  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - Content-Length: 763  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - Authorization: Basic XXXXXXXXX  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - x-chain-id: 1001  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService -  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - {“jsonrpc”:“2.0”,“method”:“klay\_estimateGas”,“params”:[{“from”:“0x166272e821dab0a5d1d560e8eb2a6d751da47e63”,“to”:“0x8d25aC131101B07B3EB4F25933aA8Fb548463D30”,“data”:“0x50bb4e7f000000000000000000000000166272e821dab0a5d1d560e8eb2a6d751da47e6300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008668747470733a2f2f73332e61702d6e6f727468656173742d322e616d617a6f6e6177732e636f6d2f6d6f62696c652d6465762e66696c652d73746f72652e61702d6e6f727468656173742d322f746f6461792f313633303535353836383539342d32383766373739656234653434313132616434373939303731623366393362312e6a7065670000000000000000000000000000000000000000000000000000”}],“id”:0}  
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - → END POST (763-byte body)  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - ← 200 OK [https://node-api.klaytnapi.com/v1/klaytn](https://node-api.klaytnapi.com/v1/klaytn) (195ms)  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - content-length: 122  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - content-type: application/json  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - date: Wed, 15 Sep 2021 08:15:39 GMT  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - server: istio-envoy  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - vary: Origin  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - x-envoy-upstream-service-time: 6  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService -  
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - {“jsonrpc”:“2.0”,“id”:0,“error”:{“code”:-32000,“message”:“gas required exceeds allowance or always failing transaction”}}

java.io.IOException: gas required exceeds allowance or always failing transaction  
at com.klaytn.caver.contract.ContractMethod.estimateGas(ContractMethod.java:1097)  
at com.klaytn.caver.contract.ContractMethod.estimateGas(ContractMethod.java:510)  
at com.klaytn.caver.kct.kip17.KIP17.estimateGas(KIP17.java:1346)  
at com.klaytn.caver.kct.kip17.KIP17.determineSendOptions(KIP17.java:1293)  
at com.klaytn.caver.kct.kip17.KIP17.mintWithTokenURI(KIP17.java:1070)  
at ~~

---

<div class="post-metadata">

**Author:** ![x2hokim](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/x2hokim/32/826_2.png) [@x2hokim](https://devforum.kaia.io/u/x2hokim)\
**Post date:** [9월 16, 2021, 12:29오전 UTC](https://devforum.kaia.io/t/caver-java-ext-kas/1863/2 "2021-09-16T00:29:04Z")

</div>

원인을 확인했습니다. 배포가 잘못되어 KIP17이 아니라 KIP7이 배포되었습니다. 배포 편집 파일 저장이 안된상태였습니다.  
감사합니다.
