---
title: "Get all available chain contracts"
method: GET
path: "/v1/chains/{chainID}/contracts"
tags: ["chains"]
---

# Get all available chain contracts

`GET /v1/chains/{chainID}/contracts`

## Path parameters

- `chainID` string, string, required

## Query parameters

- `block` string, string

## Response `200`

A list of all available contracts

- ContractInfoResponse[]
  - `hName` string, string, required — The id (HName as Hex)) of the contract.
  - `name` string, string, required — The name of the contract.
  - `programHash` string, string, required — The hash of the contract. (Hex encoded)

## Other responses

- `401` — Unauthorized (Wrong permissions, missing token)

## Changes

- **2023-07-07** `992c016b4b67` — 1 info
  - added the new optional `query` request parameter `block`
- **2023-06-21** `41625cef1e59` — 1 breaking
  - removed the required property `items/description` from the response with the `200` status
- **2023-03-21** `5ffe1a3d7623` — 1 info
  - endpoint added
- **2023-02-13** `1041f915f260` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/iotaledger/apis/wasp-api/changes/v1/chains/:chainID/contracts/get.md)

---

[API](https://skmtc.dev/iotaledger/apis/wasp-api.md) · [All operations](https://skmtc.dev/iotaledger/apis/wasp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iotaledger/wasp-api/revisions/994a6c93b890/schema)
