Contract API

Contract API에 대한 소개 페이지입니다.

Contract API 소개

ChainZ API Service의 Contract API는 ChainZ 네트워크에 Smart Contract를 쉽게 배포하고 관리 할 수 있게 해줍니다. 그리고 Contract를 호출한 Transaction, Contract에 저장된 데이터와 이벤트를 조회할 수 있는 API를 제공합니다.

Transaction API에 사용할 Transaction을 생성할 수도 있으며, Smart Contract의 Data도 조회할 수 있습니다.

Contract API 사용

사용 방법은 Getting Started > API 사용 > API 사용 절차 > Contract API 사용하기 항목을 참고합니다.

Contract API 목록

구분

Method

API 이름

설명

Contract Artifacts

GET

/api/v1/contract/artifacts

Contract 정보를 조회하는 API 입니다.

POST

/api/v1/contract/artifacts

Contract의 정보를 등록하는 API 입니다.

GET

/api/v1/contract/artifacts/ids/{contractId}

Contract ID로 Contract 정보를 조회하는 API 입니다.

PUT

/api/v1/contract/artifacts/ids/{contractId}

Contract의 정보를 수정하는 API 입니다.

DELETE

/api/v1/contract/artifacts/ids/{contractId}

Contract의 정보를 삭제하는 API 입니다.

GET

/api/v1/contract/artifacts/history

Contract 정보의 기록을 조회하는 API 입니다.

Contract Deployment

GET

/api/v1/contract/deployments

배포된 Contract의 정보를 조회하는 API 입니다.

Contract Query

GET

/api/v1/contract/query/chains/{chainId}/contracts/{contractId}

Contract에 저장된 데이터를 조회하는 API 입니다.

Contract Event

GET

/api/v1/contract/events/chains/{chainId}/contracts/{contractAddress}

블록체인의 Contract에서 발생한 이벤트를 조회하는 API 입니다.

Contract Transaction

GET

/api/v1/contract/transactions/chains/{chainId}/contracts/{contractAddress}

블록체인의 Contract에서 발생한 Transaction을 조회하는 API 입니다.

Provider Contract

GET

/api/v1/mgmt/contract/artifacts

등록된 Contract Artifact를 조회하는 API입니다.

GET

/api/v1/mgmt/contract/deployments

배포된 Contract 목록을 조회하는 API 입니다.

GET

/api/v1/mgmt/contract/artifacts/stats/periodController_getContractStat

특정 기간동안 등록된 Contract Artifact 목록을 조회하는 API 입니다.

Last updated

Was this helpful?