# Error code: 6407, err: invalid abi 에러 문의 드립니다

**URL:** <https://devforum.kaia.io/t/error-code-6407-err-invalid-abi/850>\
**Category:** Klip (아카이브)\
**Created:** [4월 1, 2021, 6:57오전 UTC](https://devforum.kaia.io/t/error-code-6407-err-invalid-abi/850 "2021-04-01T06:57:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sung-Bin\_Ahn](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/sung-bin_ahn/32/467_2.png) [@Sung-Bin\_Ahn](https://devforum.kaia.io/u/Sung-Bin_Ahn)\
**Post date:** [4월 1, 2021, 6:57오전 UTC](https://devforum.kaia.io/t/error-code-6407-err-invalid-abi/850/1 "2021-04-01T06:57:25Z")

</div>

현재 컨트렉트는 메인넷에 잘 배포되어있습니다.  
위와 같은 에러는 어떠한 상황에서 나오는건가요?

배포된 컨트렉트 주소는 다음과 같습니다.

![](https://canada1.discourse-cdn.com/flex035/uploads/klaytn/original/1X/b3d8ae069b081270f5a215d73e2446c48be700fd.png)[scope.klaytn.com](https://scope.klaytn.com/account/0xc81eE91Cd9588D65c474bfB02aBB688c31e39921?tabId=txList)

> **[Klaytnscope](https://scope.klaytn.com/account/0xc81eE91Cd9588D65c474bfB02aBB688c31e39921?tabId=txList)**
>
> Klaytnscope allows you to find data by monitoring network health and statistics of Klaytn as well as profiling blocks and transactions on Klaytn.

컨트렉트 코드는 다음과 같습니다.  
pragma solidity ^0.4.25;

contract Withdraw {  
address public owner;

```auto
constructor(address _owner) public {
    owner = _owner;
}

function deposit() public payable {

}

function withdraw(uint256 amount) public {
    require(msg.sender == owner);
    owner.transfer(amount);
}

function getBalance() public view returns (uint256) {
    return address(this).balance;
}

```

}

그리고 abi는 3가지 형식으로 테스트 했는데, 아직까지 같은 에러가 발생중입니다.

=\> Format 1: Json  
[  
{  
‘constant’: true,  
‘inputs’: [],  
‘name’: ‘getBalance’,  
‘outputs’: [  
{  
‘name’: ‘’,  
‘type’: ‘uint256’  
}  
],  
‘payable’: false,  
‘stateMutability’: ‘view’,  
‘type’: ‘function’  
},  
{  
‘constant’: false,  
‘inputs’: [  
{  
‘name’: ‘amount’,  
‘type’: ‘uint256’  
}  
],  
‘name’: ‘withdraw’,  
‘outputs’: [],  
‘payable’: false,  
‘stateMutability’: ‘nonpayable’,  
‘type’: ‘function’  
},  
{  
‘constant’: true,  
‘inputs’: [],  
‘name’: ‘owner’,  
‘outputs’: [  
{  
‘name’: ‘’,  
‘type’: ‘address’  
}  
],  
‘payable’: false,  
‘stateMutability’: ‘view’,  
‘type’: ‘function’  
},  
{  
‘constant’: false,  
‘inputs’: [],  
‘name’: ‘deposit’,  
‘outputs’: [],  
‘payable’: true,  
‘stateMutability’: ‘payable’,  
‘type’: ‘function’  
},  
{  
‘inputs’: [  
{  
‘name’: ‘\_owner’,  
‘type’: ‘address’  
}  
],  
‘payable’: false,  
‘stateMutability’: ‘nonpayable’,  
‘type’: ‘constructor’  
}  
]

=\> Format 2: Json string of format 1  
=\> Format 3:  
‘[{‘constant’:true,‘inputs’:[],‘name’:‘getBalance’,‘outputs’:[{‘name’:’’,‘type’:‘uint256’}],‘payable’:false,‘stateMutability’:‘view’,‘type’:‘function’},{‘constant’:false,‘inputs’:[{‘name’:‘amount’,‘type’:‘uint256’}],‘name’:‘withdraw’,‘outputs’:[],‘payable’:false,‘stateMutability’:‘nonpayable’,‘type’:‘function’},{‘constant’:true,‘inputs’:[],‘name’:‘owner’,‘outputs’:[{‘name’:’’,‘type’:‘address’}],‘payable’:false,‘stateMutability’:‘view’,‘type’:‘function’},{‘constant’:false,‘inputs’:[],‘name’:‘deposit’,‘outputs’:[],‘payable’:true,‘stateMutability’:‘payable’,‘type’:‘function’},{‘inputs’:[{‘name’:’\_owner’,‘type’:‘address’}],‘payable’:false,‘stateMutability’:‘nonpayable’,‘type’:‘constructor’}]’

빠른 답변 감사드립니다.

---

<div class="post-metadata">

**Author:** ![\_albert](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/_albert/32/60_2.png) [@\_albert](https://devforum.kaia.io/u/_albert)\
**Post date:** [4월 3, 2021, 10:09오전 UTC](https://devforum.kaia.io/t/error-code-6407-err-invalid-abi/850/2 "2021-04-03T10:09:33Z")

</div>

Sung-Bin Ahn님, 안녕하세요 🙂

혹시 내부에서 테스트해볼 수 있도록 실제 호출하신 Klip API 예제를 curl 스크립트로 전달해주시면 분석에 도움이 되겠습니다. 참고로 abi에는 실제로 호출하실 한 개의 메소드에 대한 abi를 넣어주셔야합니다.
