# Smart contract의 storage 상태를 조회하는 방법 문의 드립니다

**URL:** <https://devforum.kaia.io/t/smart-contract-storage/1746>\
**Category:** Caver\
**Tags:** caver-js\
**Created:** [8월 27, 2021, 9:20오전 UTC](https://devforum.kaia.io/t/smart-contract-storage/1746 "2021-08-27T09:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11162](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/11162/32/886_2.png) [@11162](https://devforum.kaia.io/u/11162)\
**Post date:** [8월 27, 2021, 9:20오전 UTC](https://devforum.kaia.io/t/smart-contract-storage/1746/1 "2021-08-27T09:20:20Z")

</div>

안녕하세요.

현재 caver js의 getCode API를 실행하면, contract의 bytecode를 받아볼 수 있습니다.  
그런데 contract의 byte code에는 operation 정보만 들어있고, storage ( == constructor로 선언된 storage 영역 == smart contract의 state variable )의 정보가 들어 있지 않은 것으로 보입니다.  
operation 정보외에 state를 받아올 수 있는 caver-js API가 별도로 존재하는지 문의 드립니다.

감사합니다.

---

<div class="post-metadata">

**Author:** ![11162](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/11162/32/886_2.png) [@11162](https://devforum.kaia.io/u/11162)\
**Post date:** [8월 30, 2021, 12:10오전 UTC](https://devforum.kaia.io/t/smart-contract-storage/1746/2 "2021-08-30T00:10:34Z")

</div>

\*caver-js API-\> KAS API

---

<div class="post-metadata">

**Author:** ![Kale](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/kale/32/148_2.png) [@Kale](https://devforum.kaia.io/u/Kale)\
**Post date:** [8월 30, 2021, 7:51오전 UTC](https://devforum.kaia.io/t/smart-contract-storage/1746/3 "2021-08-30T07:51:35Z")

</div>

안녕하세요. 클레이튼 포럼에 질문 남겨주셔서 감사합니다.

질문 남겨주신 스마트 컨트랙트의 storage 정보라는 것이, [스마트 컨트랙트에 storage 영역에 선언된 데이터](https://docs.soliditylang.org/en/v0.8.7/internals/layout_in_storage.html?highlight=storage#layout-of-state-variables-in-storage)를 이야기하는게 맞으실까요?

이 데이터는 스마트 컨트랙트에 보고싶으신 storage 영역의 데이터를 가져오는 Getter 함수를 만들어서 배포하신 뒤에 Node API의 klay\_call을 통해 조회하셔야 할 것 같습니다.

감사합니다.
