---
title: "Get on-chain KMS details by chain"
method: GET
path: "/api/v1/kms/on-chain/{chain}"
tags: ["KMS"]
---

# Get on-chain KMS details by chain

`GET /api/v1/kms/on-chain/{chain}`

Returns KMS contracts on the specified chain with device and OS image whitelist status.

## Path parameters

- `chain` string, required

## Response `200`

Successful Response

- OnChainKmsResponse
  - `chain_name` string, required
  - `chain_id` integer, required
  - `contracts` OnChainKmsContractOut[], required
    - `contract_address` string, required
    - `chain_id` integer, required
    - `chain_name` string, required
    - `devices` OnChainDeviceOut[], required
      - `device_id` string, required
      - `node_name` string, nullable — Physical node name if available
      - `on_chain_allowed` boolean, nullable — null if check failed
    - `os_images` OnChainOsImageOut[], required
      - `name` string, required
      - `version` string, required
      - `os_image_hash` string, nullable
      - `on_chain_allowed` boolean, nullable — null if no hash or check failed

## Other responses

- `400` — Unsupported chain name
- `422` — Validation Error

---

[API](https://skmtc.net/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.net/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/revisions/83c6ae62e860/schema)
